Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to calculate elapsed time/days/months/years between two datetimes in Excel?

Here you have two time lists, one list is the start time, the other is the end time, can you calculate the elapsed time between two times in the same row quickly as below screenshot shown? Here, this tutorial introduces the tricks on calculating elapsed time, days, months, or years between two datetimes in Excel.
doc calcualte elasped time 1

Calculate elapsed time/days/months/years with formula


Calculate age based on birthday

Here you have a list of birthday for instance, and have you ever tried to calculate the age today based on thses birthday? Kutools for Excel's Calculate age based on birthday can do you a nice favor. Note: The date of "Today" in below example is 1/10/2016
doc calculate age

Excel Productivity Tools

Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial

Kutools for Excel: Save 70% of your time and solve 80% Excel problems for you. 300+ advanced features designed for 1500+ work scenario, make Excel much easy and increase productivity immediately. 60-day Unlimited Free Trial


arrow blue right bubble Calculate elapsed time/days/months/years with formula


Calculate elapsed time

1. Select a blank cell, enter this formula =IF(B2< A2, 1 + B2 - A2, B2- A2), A2 is start time, B2 is End time, and press Enter key then drag auto fill handle to fill formulas to the cells you want.
doc calcualte elasped time 2

2. Keep formula cells selected, right click to open context menu, and choose Format Cells, and in the Format Cells dialog, under Number tab, select Time from left pane, then to choose the time type you want to display in right section. See screenshot:
doc calcualte elasped time 3

3. Click OK. The elapsed times have been displayed.

Calculate elapsed days/month/years

To calculate elapsed days is so easy, you just need to apply this formula = B2-A2, A2 is the start date, B2 is the end date.
doc calcualte elasped time 4

Tip: To calculate elapsed month, you can use this formula =DATEDIF(A2,B2,"m"), A2 is the start date, B2 is the end date. For elapsed years, apply =DATEDIF(A2,B2,"m")/12, and then format the cells as number.

Calculate elapsed year, month and days

Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.

For example, you have two dates, and you want to know the exact difference between these two dates, and display the elapsed period as x Years, x Month, x Days (such as 2 Years, 6 Months, 19 Days), you can apply below formula.

Select a blank cell which will place the calculated result, enter this formula =DATEDIF(A2,B2,"Y") & " Years, " & DATEDIF(A2,B2,"YM") & " Months, " & DATEDIF(A2,B2,"MD") & " Days", press Enter key to get the result.
doc calcualte elasped time 5


Add Years/Months/Days to Date

To quickly add a specific number of days to a given date, Kutools for Excel's Add Years/Months/Days to Date utilities can give you a favor.
doc add year month day

Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for you.

  • Designed for 1500+ work scenarios, helps you solve 80% Excel problems.
  • Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  • Being used by 110,000 elites and 300+ well-known companies.

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    kriso · 1 years ago
    how would you find the average of such formulas