Skip to main content
 

Excel calculate date and time: Add, subtract date time, time difference, age calculation

Author: Sun Last Modified: 2020-04-10

Kutools for Excel

Boosts Excel With 300+
Powerful Features

This tutorial introduces a powerful and helpful calculator which can solve almost 90% date and time calculations you probably use in Excel. It is the Date & Time Helper which is the one of features in Kutools for Excel.

What it can do are:

Add or Subtract date and time

Calculate the difference between two dates or two times and return a specified format

Calculate the Age based on a given date and return to year, month, day or year month day

Applying the Date & Time Helper feature by clicking Kutools > Formula Helper > Date & Time Helper.

shot date time helper 1   arrow right  shot date time helper 2

Add or Subtract date and time

If you want to add or subtract year, month or days, or hours, minutes or seconds to a date time, you can use the first and second options in the Date & Time Helper dialog.

1. Select a cell which you want to place the calculation result at, then click Kutools > Formula Helper > Date & Time Helper to enable the Date & Time Helper dialog.

2. In the Date & Time Helper dialog, check Add or Subtract option in the Type section.
shot date time helper 3

3. Then in the Arguments input section, enter a date manually or click shot range to select a date to calculate in the text box of Enter a date or select a date formatting cell.
shot date time helper 4 shot date time helper 5

4. Under Enter numbers or select cells which contain values you want to add (subtract), you can directly enter the numbers of year, month, week, day or hour, minute or seconds you want to add or subtract into the related textboxes, or you can select cells which contain the numbers you want to use to fill.

You can preview the formula and result in the Result section.
shot date time helper 6

5. Click OK. Then the calculated result has been displayed. And then you can drag the auto fill handle down to the cells for applying the formula.

Add Date (2 years, 3 months, 12 weeks and 40 days)
shot date time helper 7

Add date time (Add 3 days 3 hours 30 minutes and 15 seconds)
shot date time helper 8

Subtract datetime (4 weeks 1 hour)
shot date time helper 9 shot date time helper 10


Calculate the difference between two dates or two times and return a specified format

If you want to get the difference between two dates or two times, you can use the Difference option in the Date & Time Helper dialog.

1. Select a cell which you want to place the calculation result at, then click Kutools > Formula Helper > Date & Time Helper to enable the Date & Time Helper dialog.

2. In the Date & Time Helper dialog, check Difference option in the Type section.
shot date time helper 11

3. Then in the Arguments input section, enter dates manually or click shot range to select dates to calculate in the text box of Date1 and Date2.
shot date time helper 12

4. Under Output result type, you can choose the format you want the result display as from the drop-down list.
shot date time helper 14

You can preview the formula and calculation result in the Result section.
shot date time helper 15

Note: if you want to ignore the blank values, check Ignore (do not display) 0 values checkbox.

5. Click OK. Then the calculated result has been displayed. And then you can drag auto fill handle down to the cells for applying the formula.
shot date time helper 16


Calculate the Age based on a given date and return to year, month, day or year month day

If you want to calculate the current age based on the birthday or a given date, you can choose the Age option.

1. Select a cell which you want to place the calculation result at, then click Kutools > Formula Helper > Date & Time Helper to enable the Date & Time Helper dialog.

2. In the Date & Time Helper dialog, check Age option in the Type section.
shot date time helper 17

3. Then in the Arguments input section, do as below:

1) Enter a date manually or click shot range to select a date to calculate in the text box of Date of Birth.

2) Check the end date as you need, if you want to calculate the current age, check Today, if you want to calculate the age on a specified date, check Specified date and then select the date cell.

3) Specify the result type as you need.
shot date time helper 18

You can preview the formula and calculation result in the Result section.
shot date time helper 19

4. Click OK. Then the calculated result has been displayed. And then you can drag the auto fill handle down to the cells for applying the formula.
shot date time helper 20

Note:The Date & Time Helper supports Undo.



Productivity Tools Recommended
The following tools can greatly save your time and money, which one is right for you?
Office Tab: Using handy tabs in your Office, as the way of Chrome, Firefox and New Internet Explorer.
Kutools for Excel: More than 300 Advanced Functions for Excel 2021, 2019, 2016, 2013, 2010, 2007 and Office 365.

Kutools for Excel

The functionality described above is just one of 300 powerful functions of Kutools for Excel.

Designed for Excel(Office) 2021, 2019, 2016, 2013, 2010, 2007 and Office 365. Free download and use for 30 days.

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase