How to subtract in Excel: formula for numbers, percentages, dates and times

The tutorial shows how to do subtraction in Excel by using the minus sign and SUM function. You will also learn how to subtract cells, entire columns, matrices and lists.

Subtraction is one of the four basic arithmetic operations, and every primary school pupil knows that to subtract one number from another you use the minus sign. This good old method works in Excel too. What kind of things can you subtract in your worksheets? Just any things: numbers, percentages, days, months, hours, minutes and seconds. You can even subtract matrices, text strings and lists. Now, let's take a look at  how you can do all this.

Subtraction formula in Excel (minus formula)

For the sake of clarity, the SUBTRACT function in Excel does not exist. To perform a simple subtraction operation, you use the minus sign (-).

The basic Excel subtraction formula is as simple as this:


For example, to subtract 10 from 100, write the below equation and get 90 as the result:


To enter the formula in your worksheet, do the following:

  1. In a cell where you want the result to appear, type the equality sign (=).
  2. Type the first number followed by the minus sign followed by the second number.
  3. Complete the formula by pressing the Enter key.

Like in math, you can perform more than one arithmetic operation within a single formula.

For example, to subtract a few numbers from 100, type all those numbers separated by a minus sign:


To indicate which part of the formula should be calculated first, use parentheses. For example:


The screenshot below shows a few more formulas to subtract numbers in Excel:
Formulas to subtract numbers in Excel

How to subtract cells in Excel

To subtract one cell from another, you also use the minus formula but supply cell references instead of actual numbers:

=cell_1 - cell_2

For example, to subtract the number in B2 from the number in A2, use this formula:


You do not necessarily have to type cell references manually, you can quickly add them to the formula by selecting the corresponding cells. Here's how:

  1. In the cell where you want to output the difference, type the equals sign (=) to begin your formula.
  2. Click on the cell containing a minuend (a number from which another number is to be subtracted). Its reference will be added to the formula automatically (A2).
  3. Type a minus sign (-).
  4. Click on the cell containing a subtrahend (a number to be subtracted) to add its reference to the formula (B2).
  5. Press the Enter key to complete your formula.

And you will have a result similar to this:
Subtracting cells in Excel

How to subtract multiple cells from one cell in Excel

To subtract multiple cells from the same cell, you can use any of the following methods.

Method 1. Minus sign

Simply type several cell references separated by a minus sign like we did when subtracting multiple numbers.

For example, to subtract cells B2:B6 from B1, construct a formula in this way:


Subtracting multiple cells from one cell

Method 2. SUM function

To make your formula more compact, add up the subtrahends (B2:B6) using the SUM function, and then subtract the sum from the minuend (B1):


Subtract multiple cells by using the SUM function.

Method 3. Sum negative numbers

As you may remember from a math course, subtracting a negative number is the same as adding it. So, make all the numbers you want to subtract negative (for this, simply type a minus sign before a number), and then use the SUM function to add up the negative numbers:


Sum negative numbers.

How to subtract columns in Excel

To subtract 2 columns row-by-row, write a minus formula for the topmost cell, and then drag the fill handle or double-click the plus sign to copy the formula to the entire column.

As an example, let's subtract numbers in column C from the numbers in column B, beginning with row 2:


Subtracting columns in Excel

Due to the use of relative cell references, the formula will adjust properly for each row:

The subtraction formula adjusts for each row.

Subtract the same number from a column of numbers

To subtract one number from a range of cells, enter that number in some cell (F1 in this example), and subtract cell F1 from the first cell in the range:


The key point is to lock the reference for the cell to be subtracted with the $ sign. This creates an absolute cell reference that does not change no matter where the formula is copied. The first reference (B2) is not locked, so it changes for each row.

As the result, in cell C3 you will have the formula =B3-$F$1; in cell C4 the formula will change to =B4-$F$1, and so on:

Subtracting the same number from a column of numbers

If the design of your worksheet does not allow for an extra cell to accommodate the number to be subtracted, nothing prevents you from hardcoding it directly in the formula:


How to subtract percentage in Excel

If you want to simply subtract one percentage from another, the already familiar minus formula will work a treat. For example:


Or, you can enter the percentages in individual cells and subtract those cells:


Subtracting percentages in Excel

If you wish to subtract percentage from a number, i.e. decrease number by percentage, then use this formula:

=Number * (1 - %)

For example, here's how you can reduce the number in A2 by 30%:


Or you can enter the percentage in an individual cell (say, B2) and refer to that cell by using an absolute reference:


A formula to subtract percentage in Excel

For more information, please see How to calculate percentage in Excel.

How to subtract dates in Excel

The easiest way to subtract dates in Excel is to enter them in individual cells, and subtract one cell from the other:

=End_date - Start_date

Subtracting dates in Excel

You can also supply dates directly in your formula with the help of the DATE or DATEVALUE function. For example:



More information about subtracting dates can be found here:

How to subtract time in Excel

The formula for subtracting time in Excel is built in a similar way:


For example, to get the difference between the times in A2 and B2, use this formula:


For the result to display correctly, be sure to apply the Time format to the formula cell:

Subtracting time in Excel

You can achieve the same result by supplying the time values directly in the formula. For Excel to understand the times correctly, use the TIMEVALUE function:


For more information about subtracting times, please see:

How to do matrix subtraction in Excel

Suppose you have two sets of values (matrices) and you want to subtract the corresponding elements of the sets like shown in the screenshot below:

Subtracting matrices

Here's how you can do this with a single formula:

  1. Select a range of empty cells that has the same number of rows and columns as your matrices.
  2. In the selected range or in the formula bar, type the matrix subtraction formula:
  3. Press Ctrl + Shift + Enter to make it an array formula.
    Creating a matrix subtraction formula

The results of the subtraction will appear in the selected range. If you click on any cell in the resulting array and look at the formula bar, you will see that the formula is surrounded by {curly braces}, which is a visual indication of array formulas in Excel:
An array formula to subtract matrices

If you do not like using array formulas in your worksheets, then you can insert a normal subtraction formula in the top leftmost cell and copy in rightwards and downwards to as many cells as your matrices have rows and columns.

In this example, we could put the below formula in C7 and drag it to the next 2 columns and 2 rows:


Due to the use of relative cell references (without the $ sign), the formula will adjust based on a relative position of the column and row where it is copied:

A normal non-array formula to subtract matrices

Subtract text of one cell from another cell

Depending on whether you want to treat the uppercase and lowercase characters as the same or different, use one of the following formulas.

Case-sensitive formula to subtract text

To subtract text of one cell from the text in another cell, use the SUBSTITUTE function to replace the text to be subtracted with an empty string, and then TRIM extra spaces:

TRIM(SUBSTITUTE(full_text, text_to_subtract,""))

With the full text in A2 and substring you want to remove in B2, the formula goes as follows:


As you can see, the formula works beautifully for subtracting a substring from the beginning and from the end of a string:

Case-sensitive formula to subtract text of one cell from another cell

If you want to subtract the same text from a range of cells, you can "hard-code" that text in your formula.

As an example, let's remove the word "Apples" from cell A2:


Removing the same text from a range of cells

For the formula to work, please be sure to type the text exactly, including the character case.

Case-insensitive formula to subtract text

This formula is based on the same approach - replacing the text to subtract with an empty string. But this time, we will be using the REPLACE function in combination with two other functions that determine where to start and how many characters to replace:

  • The SEARCH function returns the position of the first character to subtract within the original string, ignoring text case. This number goes to the start_num argument of the REPLACE function.
  • The LEN function finds the length of a substring that should be removed. This number goes to the num_chars argument of REPLACE.

The complete formula looks as follows:

TRIM(REPLACE(full_text, SEARCH(text_to_subtract, full_text), LEN(text_to_subtract),""))

Applied to our sample data set, it takes the following shape:


Where A2 is the original text and B2 is the substring to be removed.
Case-insensitive formula to subtract text of one cell from another cell

Subtract one list from another

Supposing, you have two lists of text values in different columns, a smaller list being a subset of a larger list. The question is: How do you remove elements of the smaller list from the larger list?

Mathematically, the task boils down to subtracting the smaller list from the larger list:

Larger list: {"A", "B", "C", "D"}

Smaller list: {"A", "C"}

Result: {"A", "D"}

In terms of Excel, we need to compare two lists for unique values, i.e. find the values that appear only in the larger list. For this, use the formula explained in How to compare two columns for differences:

=IF(COUNTIF($B:$B, $A2)=0, "Unique", "")

Where A2 is the first cells of the larger list and B is the column accommodating the smaller list.

As the result, the unique values in the larger list are labeled accordingly:
Finding unique values in the larger list

And now, you can filter the unique values and copy them wherever you want.

That's how you subtract numbers and cells in Excel. To have a closer look at our examples, please feel free to download our Subtraction formula in Excel workbook. I thank you for reading and hope to see you on our blog next week!

You may also be interested in:

16 Responses to "How to subtract in Excel: formula for numbers, percentages, dates and times"

  1. PRAVEEN KUMAR says:

    I have students list with Marks & Rank and i want to find 1-10 marks how many students and their ranks in Brackets
    For Example
    1-10 marks
    10 students(1,2,3,4,5,6,7,8,9,10)Ranks

  2. Cameron says:

    I'm currently trying to write a function for a time sheet at work and am having a little bit of trouble. My goal is to alert my boss when a task is close to being due but i've run into a bump thats making me scratch my head a little.
    IF(C5=E5-10,"10 Hours Left")))
    Any help would be appreciated. Thanks

    • Ann Yamauchi says:


      It's not really a formula but if you were to type the following, it'll give you results that I think you're looking for:

      =IF(E5=183,"10 Hours Left","")

      If you need more help on your spreadsheet let me know. Ann

  3. BOB says:

    subtract function does not exist in excel ???? but you write =c1-c2 let say. too me it looks like a function but it works only once why ?

    • Hi Bob,

      Functions and formulas are a bit different things.

      Function is a predefined formula already available in Excel. Functions perform specific calculations based on the specified values, called arguments, or parameters.

      For example, Excel provides a built-in function to add up numbers: SUM(number1,[number2],...)

      A built-in SUBTRACT function does not exist. But you can make your own subtract formula like =A1-A2

  4. Lee Stickle says:

    I have value in cell a1 (1801381), I need to multiple that value by 1.05% (1891450), then subtract the value in cell A1 (1801381) from 1891450. What would that formula look like?

  5. Chris O.A says:

    Honestly, this is awesome! It was as if i was face-to-face in a classroom with my tutor. This is excel made simple. Thank you so much.

  6. Lindsay says:

    I have a cell with the formula =DATEDIF(G7,C2,"d") to get the number of days since a breeding event for cattle. I would like to be able to have another cell that automatically subtracts that number from 282, changing each day (like a countdown of days left, where 282 is the total days in gestation so I know how many days until they are due).

    Thank you!

  7. Dana Garner says:

    i have followed this to the letter... just trying to subtract one column from the other.... does not work.

  8. KRISHNA says:


  9. john says:

    Dear Sir,
    I don't want to put in the value every time I want to subtract one particular number from that cell. I tried placing that number in one cell and click it with =a1-b1 but this when extended using the easy option it selects the next one so I don't get the value. I don't want to put it inside the formula every time, cause this will be entered by someone else, that value they put in should be subtracted from all without making them the use of the formula.

  10. Gena says:

    I need a formula in excel that will add and subtract accrued time but not allow total to go over 384?

  11. Lyzel says:

    I need help could you teach me how can I take the bonus for 2142worked hours 1500 hours must subtract the remaining hour it cost 10$. can you show me what formula i should use to see the bonus? ASAP thanks

  12. PRAKASH says:


Post a comment

Unfortunately, due to the volume of comments received we cannot guarantee that we will be able to give you a timely response. When posting a question, please be very clear and concise. We thank you for understanding!
Ultimate Suite 2018.5 for Excel
60+ professional tools for Excel 2019-2007 to do your daily work
Incredible product, even better tech support…AbleBits totally delivers!
Deborah Bryant
Anyone who works with Excel is sure to find their work made easier
Jackie Lee
The best spent money on software I've ever spent!
Patrick Raugh
Ablebits is a fantastic product - easy to use and so efficient.
Debra Celmer
Excel is at its best now
Annie C.
I don't know how to thank you enough for your Excel add-ins
Jennifer Morningstar
Anybody who experiences it, is bound to love it!
Kumar Nepa
AbleBits suite has really helped me when I was in a crunch!
Nelda Fink
I have enjoyed every bit of it and time am using it
Christian Onyekachi Nwosu
It's the best $100 we've ever spent!
Mike Cavanagh
I love the program, and I can't imagine using Excel without it!
Robert Madsen
One word… WOW!
Dave Brown
Love the products!
David Johnston
It is like having an expert at my shoulder helping me…
Linda Shakespeare
Your software really helps make my job easier
Jeannie C.
Thanks for a terrific product that is worth every single cent!
Dianne Young
I love your product
Brad Gibson
Sheila Blanchard