How To Subtract In Excel (Subtract Cells, Column, Dates/Time)

While Excel is an amazing tool for data analysis, many people use it for basic arithmetic calculations such as addition, subtraction, multiplication, and division.

If you’re new to Excel and wondering how to subtract in Excel, you’re at the right place.

In this tutorial, I will show you how to subtract in Excel (subtract cells, ranges, columns, and more).

I will start with the basics and then would cover some advanced subtraction techniques in Excel. I also cover how to subtract dates, times, and percentages in Excel.

So let’s get to it!

Subtracting Cells/Values in Excel

Let’s start with a really simple example, where I have two values (say 200 and 100) and I want to subtract these and get the result.

Here is how to do this:

  1. Select the cell where you want to subtract and enter an equal to sign (=)
  2. Enter the first value
  3. Enter the subtraction sign (minus sign -)
  4. Enter the second number
  5. Hit Enter
Simple Subtraction with hardcoded values

The above steps would perform the calculation in the cell and display the result.

Note that this is called a formula in Excel, where we start with an equal-to sign and then have the formula or the equation that we want to solve.

In the above example, we hard-coded the values in the cell. This means that we manually entered the values 200 and 100 in the cell.

You can also use a similar formula when you have these values in cells. In that case, instead of entering the values manually, you can use the reference of the cell.

Suppose you have two values in cell B1 and B2 (as shown below), and you want to subtract the value in cell B2 from the value in cell B1

Values in cell B1 and B2

Below is the formula that will do this:

=B1-B2
Simple Subtraction formula in Excel

It’s the same construct, but instead of manually entering the values in the formula, we have used the cell reference which holds the value.

The benefit of doing this is that in case the values in the cells change, the formula would automatically update and show you the correct result.

Subtracting a Value from an Entire Column

Now let’s get to slightly more advanced subtraction calculations.

In the above example, we had two values that we wanted to subtract.

But what if you have a list of values in a column, and you want to subtract one specific value from that entire column.

Again, you can easily do that in Excel.

Suppose you have a data set as shown below and you want to subtract the value 10 from each cell in column A.

Dataset with values in column

Below are the steps to do this:

  1. In cell B2, enter the formula: =A2-10
Formula to subtract 10 from cell value
  1. Copy cell B2
  2. Select cell B3 to B12
  3. Paste the copied cell
Subtraction result for the entire column

When you do this, Excel will copy the formula in cell B2, and then apply that to all the cells where you pasted the copied cell.

And since we are using a cell reference in the formula (A2), Excel would automatically adjust the cell reference as it goes down.

For example, in cell B3, the formula would become =A3-10, and in cell B4, the formula would become A4-10.

If Using Microsoft 365

The method that I’ve covered above will work with all the versions of Excel, but if you using Microsoft 365, then you can use an even easier formula.

Suppose you have the same data (with data in column A) and you want to subtract 10 from each cell, you can use the below formula in cell B2:

=A2:A12-10
Subtract using dynamic array formula

That’s it!

You don’t need to worry about copying and pasting the formula in other cells as Excel would take care of it.

This is called a dynamic array formula, where the result does not return one single value, but an array of values. And these are values are then spilled over to other cells in the column

Note: For these dynamic array formulas to work, you need to make sure the cells where the result would be populated are empty. In case there is already a number of text in these cells, you will see the #SPILL! error in the cell where you enter the formula.

Subtracting a Cell Value from an Entire Column

In the above example, I subtracted 10 from multiple cells in a column.

We can use the same concept to subtract a value in a cell from an entire column.

Suppose you have a dataset as shown below where you want to subtract the value in cell D2 with all the cells in column A.

Dataset to subtract one value from a column

Below are the steps to do this:

  1. In cell C2, enter the formula: =A2-$D$2
Formula to subtract a value from a column
  1. Copy cell C2
  2. Select cell C3 to C12
  3. Paste the copied cell
Copy formula to entire column to subtract entire column

In this example, I have used the formula A2-$D$2, which makes sure that when I copy the formula for all the other cells in column C, the value that I am subtracting remains the same, which is cell B2.

When you add a dollar before the column alphabet and the row number, it makes sure that in case you copy the cell with this reference and paste it somewhere else, the reference would still remain $D$2. This is called absolute reference (as these don’t change).

When you copy this formula in cell C3, it would become A3-$D$2, and in cell C4, it would become A4-$D$2.

So while the first part of the reference keeps changing from A3 to A4 as we copy it down, the absolute reference doesn’t change,

This allows us to subtract the same value from all the cells in column A.

If Using Microsoft 365

If you’re using Microsoft 365 and have access to dynamic arrays, you can also use the below formula:

=A2:A12-D2
Dynamic array formula to subtract

With dynamic arrays, you don’t have to worry about references changing. It will take care of it itself.

Subtract Multiple Cells From One Cell

Similar to the above example, you can also delete values in an entire column from a single value or the cell that holds the value.

Suppose you have a data set as shown below and you want to subtract all the values in column B from the value in cell A2.

Dataset to subtract column from one value

Below are the steps to do this:

  1. In cell C2, enter the formula: =$A$2-B2
  2. Copy cell C2
  3. Select cell C3 to C12
  4. Paste the copied cell
Subtraction using absolute reference

The logic used here is exactly the same as above, where I’ve locked the reference $A$2 by adding a $ sign before the column alphabet and row number.

This way, the cell reference $A$2 doesn’t change when we copy it in column C, but the second reference of the formula (B2), keeps changing when we go down the cell.

If Using Microsoft 365

If you’re using Microsoft 365 and have access to dynamic arrays, you can also use the below formula:

=A2-B2:B12
Subtract using dynamic array formula

Subtracting Cells in Two Columns

In most practical cases, you will have two columns where you want to subtract the cells in each column (in the same row) and get the result.

For example, suppose you have the Revenue and Expense values in two columns and you want to calculate the Net Income (which is the difference between revenue and expenses)

Dataset to subtract two columns

Here is how to do this:

  1. In cell C2, enter the formula: =B2-C2
Subtract two cells formula
  1. Copy cell C2
  2. Select cell C3 to C12
  3. Paste the copied cell
Copy subtraction formula to entire column

The above formula will automatically adjust the reference as it’s copied down and you will get the difference between Revenue and Expense in that row.

If Using Microsoft 365

The method that I’ve covered above will work with all the versions of Excel, but if you using Microsoft 365, then you can use an even easier formula.

Suppose you have the same data and you want to subtract the two columns, you can use the below formula:

=B2:B11-C2:C11
Dynamic formula to subtract two columns

Note that this is made possible because Excel in Microsoft 365 has something called Dynamic Arrays. If you don’t have these, then it’s won’t be able to use this formula.

Subtract Dates in Excel

Dates and Time values are stores as numbers in the backend in Excel.

For example, 44197 represents the date 01 Jan 2021, and 44198 represents ṭhe date 2 Jan 2021.

This allows us to easily subtract dates in Excel and find the difference.

For example, if you have two dates, you can subtract these and find out how many days have elapsed between these two dates.

Suppose I have a dataset as shown below where I have the ‘Start Date’ and the ‘End Date’ and I want to find out the number of days between these two dates.

Dataset to subtract dates in Excel

A simple subtraction formula would give me the result.

=B2-A2
Date subtraction formula in Excel

There is a possibility that Excel will give you the result in the date format instead of a number as shown above.

This sometimes happens when Excel tries to be helpful and pick up the format from the adjacent column.

You can easily adjust this and get the values in numbers by going to the Home tab, and select General in the number format drop-down.

Note: This formula would only work when you using a date that Excel recognizes as a valid date format. For example, if you use 01.01.2020, Excel won’t recognize it as a date and consider it a text string. So you won’t be able to subtract dates with such a format

You can read more about subtracting dates in Excel here

Subtract Time in Excel

Just like dates, even time values are stored as numbers in Excel.

While the day part of the date would be represented by the whole number, the time part would be represented by the decimal.

For example, 44197.5 would represent 01 Jan 2021 12:00 PM and 44197.25 would represent 01 Jan 2021 09:00 AM

In case you have time values in Excel, what you really have in the back end in Excel are decimal numbers that represent that time value (which are formatted to be shown as time in the cells).

And since these are numbers, you can easily subtract these.

Below I have a data set where I have the start time and the end time, and I want to calculate the difference between these two times.

Dataset to subtract time

Here is the formula that will give us the difference between these time values:

=B2-A2
Time difference in decimals

There is a high possibility that Excel will change the format of the result column to show the difference as a time value (for example, it may show you 9:00 AM instead of 0.375). You can easily change this by going to the Home tab and selecting General from the format dropdown.

Apply the general format

Note that in case of times, you will get the value in decimals, but if you want it in hours, minutes, and seconds, you can do that by multiplying the decimal value with 24 (for getting hours), or 24*60 for getting minutes and 24*60*60 for getting seconds.

So if you want to know how many hours are there in the given time in our dataset, you can use the below formula:

=(B2-A2)*24
Formula to get time difference in hours

Subtract Percentages in Excel

Subtracting percentages from a number in Excel is a little different than subtracting two whole numbers or decimals.

Suppose you have two percentage values (as shown below) and you want to subtract one from another, you can use a simple subtraction formula

Subtracting percentages in Excel

But if you want to subtract a percentage value from a non-percentage value, you need to do it differently.

Suppose you have 100 in cell B1 and you want to subtract 20% from this value (i.e., subtract 20% of 100 from 100).

You can use the below formal in this case:

=B1*(1-20%)
After subtracting a percentage in Excel

You can also use the below formula:

=B1-B1*20%

In case you have the percentage value in a cell, then you can use the cell reference as well. For example, if you have the dataset as shown below, and you want to subtract the percentage value in cell B2 from the number in B1.

Subtract Percentage dataset

Then you can use the below formula:

=B1-B1*B2
Formula to subtract percentage

Subtract Using Paste Special

And finally, you can also use Paste Special trick to subtract in Excel.

This is useful when you want to quickly subtract a specific value from an entire column.

Suppose you have the dataset as shown below and you want to subtract 100 from each of these numbers.

Dataset to subtract using paste special

Below are the steps to do this:

  1. In an empty cell, enter the value that you want to subtract from the entire column. In this example, I will enter this value in cell D1
Enter the value to subtract in an empty cell
  1. Copy cell D1 (which is the cell where you have entered this value you want to subtract)
Copy the cell that has the value
  1. Select the entire column from which you want to subtract the copied value
  2. Right-click and then click on the Paste Special option
Click on Paste Special
  1. In the special dialog box, select Values as the Paste option
Click on Values
  1. Under Operations, select Subtract
Click on Subtract
  1. Click OK
  2. Delete the value that you entered in the cell in Step 1

The above steps but simply subtract the value that you copied from the selected column. The result you get from this is a static value.

Resulting Data where value has been subtracted

The benefit of this method is that you do not need an additional column where you need to apply a formula to subtract the values. In case you want to keep the original values as well, simply create a copy of the column and then use the above steps

So these are different ways that you can use Excel to subtract values/percentages, cells, and columns.

Understanding these basic concepts will help you use the Excel spreadsheet tool the most efficient way.

I hope you found this tutorial useful.

Other Excel tutorials you may also like:

Excel Ebook Subscribe

FREE EXCEL BOOK

Get 51 Excel Tips Ebook to skyrocket your productivity and get work done faster

Picture of Sumit Bansal
Hello there! I'm Sumit Bansal, founder of trumpexcel.com and an Excel MVP. I started this website in 2013 with a simple goal: to share my love for Excel through easy to follow tips, tutorials and videos. I'm here to help you get the best out of MS Excel to save time and boost your productivity.

Leave a Comment

Free-Excel-Tips-EBook-Sumit-Bansal-1.png

FREE EXCEL E-BOOK

Get 51 Excel Tips Ebook to skyrocket your productivity and get work done faster

Free-Excel-Tips-EBook-Sumit-Bansal-1.png

FREE EXCEL E-BOOK

Get 51 Excel Tips Ebook to skyrocket your productivity and get work done faster

Free Excel Tips EBook Sumit Bansal

FREE EXCEL E-BOOK

Get 51 Excel Tips Ebook to skyrocket your productivity and get work done faster