Services
Study guides
Free tools
Get the answer and the formula. Count calendar days, exclude weekends, work out an age, or find the date 30 working days from now — all in one place.
The short answer
An Excel date calculator finds the difference between two dates in days, weeks, months or years, and returns the matching Excel formula. It can exclude weekends with NETWORKDAYS, add working days with WORKDAY, and calculate age with DATEDIF — including the exact syntax to paste into your sheet.
Calendar days
30
End minus start
Inclusive days
31
Counts both dates
Weeks
4.3
Decimal weeks
Full months
0
Completed months
=B2-A2Calendar days. Format the result as a number, not a date.
=NETWORKDAYS(A2,B2)Working days including both dates. Add a holidays range as the third argument.
=DATEDIF(A2,B2,"m")Completed months between the two dates.
=DATEDIF(A2,B2,"y")Completed years between the two dates.
Calculations use calendar dates only — time of day is ignored. Excel's date system starts on 1 January 1900, so dates before that cannot be used in a workbook.
Subtract the start date from the end date: =B2-A2, then format the result as a number. For inclusive counting add 1: =B2-A2+1. For working days only, use =NETWORKDAYS(A2,B2).
Excel stores dates as serial numbers. A result showing 45678 means the cell is formatted as General or Number. Apply a Date format (Ctrl+1 → Date) to display it as a date.
Use NETWORKDAYS(start, end, holidays) to count working days, or WORKDAY(start, days, holidays) to find a future working date. Put your holiday dates in a separate range and reference it as the third argument.
Use =DATEDIF(A2,TODAY(),"Y") for completed years. For years, months and days use three DATEDIF calls with "Y", "YM" and "MD". DATEDIF still works in every Excel version even though it is not in the function list.
Need it done for you?
We build deadline trackers, ageing reports and working-day models that update themselves — with the formulas documented for your submission.