How to calculate interval days/weeks/months/years between two dates in Excel?
As below screenshot show, how can you calculate the interval days, weeks, months or years between two given dates in Excel? This article will show you formulas to achieve it.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
Please apply the below formulas to calculate interval days, weeks, months or years between two given dates in Excel.
Calculate interval of days
Select a blank cell, enter formula =DATEDIF(A2, B2, "d") into the Formula Bar and press the Enter key. Drag the formula down to apply it to needed cells. See screenshot:
Calculate interval of weeks
Select a blank cell, enter formula =ROUNDDOWN((DATEDIF(A2, B2, "d") / 7), 0) into the Formula Bar and press the Enter key to get the interval weeks between two dates. Then drag the formula down to apply it to needed cells. See screenshot:
Calculate interval of months
For calculating interval of months between two given dates, please apply this formula =DATEDIF(A2, B2, "m"). See screenshot:
Calculate interval of years
For getting interval years, this formula =DATEDIF(A2,B2,"y") can help.
Note: In the formulas, A2 and B2 are the cells contain the given start date and end date. Please change them as you need.