Excel right arrow icon Excel

MS Excel: How To Subtract Dates In Excel

MS Excel: How To Subtract Dates In Excel
Added On:
Last Update:

Excel Dates are stored in simple integers and the Excel user can apply addition or subtraction on dates in the Excel worksheet. This is as simple as that you subtracting or adding normal numbers.

How To Subtract Dates In Excel (Quick Guide)

Easy steps to Subtract or Add two different dates, further steps guide available below

  1. Enter any date in cell A1 and another date with some difference in the A2 cell.
  2. Select an empty cell and right-click and select the format cell.
  3. Now select the required format of date and click ok.
  4. Inside the empty cell put this "=B2-A2" formula and click "Enter" on keyboard.

Result of the subtraction will be equal to the number of days between the B2 and A2 dates.

Excel Dates Subtraction Example

Excel example contains three columns where A column contains the initial dates and column B contains the other dates and column c contains the formula where column A dates are subtracted from the column B dates.

Image_1

Note: Column A and Column B should be formatted with a written pattern of date but column C should be formatted with "General" format.

Changing Excel Cell Formatting

Excel output or difference between two dates comes as the date itself and you want that in a format of number. The only thing that you have to change is, change the formatting of the cell to Number type.

Simplest way to change the formatting of an Excel cell is, to select the "General" formatting option from the drop-down list at the middle top in the Home tab. Generally comes under Number group options, as shown below image:

Image_2