Calculate Various Difference Between Two Dates In Days, Weeks, Months, Years etc.
Too many formulas to remember, with Kutools for Excel's Date & Time Helper feature, you can quickly get the various difference results between two dates based on your need without remembering any formulas, such as weeks + days，months + weeks and so on. Click to download Kutools for Excel!
Note: In the above formula, A2 is the start date cell and B2 is the end date cell.
2. And then, drag the fill handle to fill this formula, and the specific number of years, months and days between the dates are calculated at once, see screenshot:
Calculate various difference between two dates in days, weeks, months, years with a powerful feature
May be, you are annoying with the above formulas, if you have Kutools for Excel, with its Date & Time Helper feature, you can quickly get the various difference results between two dates based on your need, such as weeks + days，months + weeks and so on.
Note:To apply this Date & Time Helper, firstly, you should download the Kutools for Excel, and then apply the feature quickly and easily.
1. Click a cell where you want to locate the result, and then click Kutools > Formula Helper > Date & Time helper, see screenshot:
2. In the Date & Time Helper dialog box, do the following operations:
Check Difference option from the Type section;
In the Arguments input textboxes, select the cells which contain the start date and end date separately;
Then, choose the output result type as you need. For example, if you want to get the number of years, months, weeks and days between two dates, you just select Year + Month + Week + Day.
3. After finishing the settings, please click OK button, and you will get the first calculated result, then, you just need to drag the fill handle down to the cells that you want to apply this formula, and you will get the following result as you need:
Supposing you have a time table to record your work time, the time in Column A is the start time of today and time in Column B is the end time of the following day. Normally, if you calculate the time difference between the two times by directly minus "=B2-A2", it will not display the correct result as left screenshot shown. How could you calculate the hours between two times after midnight in Excel correctly?
Have you ever needed to count the number of days between two dates in Excel? May be, sometimes, you just only want to calculate the workdays between two dates, and sometime, you need to count the weekend days only between the two dates. How could you count the number of days between two dates in a certain condition?
The Best Office Productivity Tools
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
More than 300 powerful features. Supports Office/Excel
2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features
30-day free trial. 60-day money back guarantee.
Copied formula, used 6/20/1949 and 1/4/2016, it gave me 66 yrs 6 months 128 days. if I use a start day date higher than the end day date I get triple digits, such as 6/5 to 6/30. Is it a formatting issue?
I used the formula "Datedif" both for Month and year, it's missed one Month or one Year. Eg. 01/Jan/2014 and 31/Dec/2014 the logical is 12 Months but the answer of the formula is 11 Months (Wrong). Please help to check and explain,
Start Date 1/1/2014 End Date 1/1/2015 Days 365 Days 1 Years, 0 Months, 0 Days =DATEDIF(C25,C26,"M") & " Months, " & DATEDIF(C25,C26,"MD") & " Days" 12 Months, 0 Days =DATEDIF(C25,C26,"M") & " Months, " & DATEDIF(C25,C26,"MD") & " Days"
[quote name="SUDHAKAR"]is it work in any date format? Ex. dd/mm/yyyy, mm/dd/yyyy, yyyy/mm/dd Please reply[/quote] [quote name="SUDHAKAR"]is it work in any date format? Ex. dd/mm/yyyy, mm/dd/yyyy, yyyy/mm/dd Please reply[/quote] Work format is dd/mm/yyy
That was very easy and helpful. I have a question however. What if in your above example B2 is a constant. Therefore, what if I am trying to find the number of year/months/days between start date and TODAY or a fixed date. Can I add that date in the formulae rather than making a new cell with the date and having the formula read from that?