How to count days between dates in Excel

Updated · DateCalculator.au

Quick answer: with the start date in A1 and the end date in B1, use =B1-A1 or =DAYS(B1,A1) for days, and =NETWORKDAYS(A1,B1,Holidays) for business days.

Formulas

You wantFormula
Days between=B1-A1 or =DAYS(B1,A1)
Days including both dates=B1-A1+1
Whole months between=DATEDIF(A1,B1,"m")
Whole years (age)=DATEDIF(A1,B1,"y")
Years, months, days=DATEDIF(A1,B1,"y")&"y "&DATEDIF(A1,B1,"ym")&"m "&DATEDIF(A1,B1,"md")&"d"
Business days (both dates counted)=NETWORKDAYS(A1,B1,Holidays)
Add business days=WORKDAY(A1,10,Holidays)
Add months=EDATE(A1,3)
Days until today=TODAY()-A1

Adding Australian public holidays

  1. Open your state’s page, for example VIC public holidays 2026, and click Download CSV.
  2. Paste the date column into a sheet and name the range Holidays (Formulas → Define Name).
  3. Use the name as the third argument of NETWORKDAYS or WORKDAY.

Excel’s DATEDIF “md” unit can give odd results near the end of months, so it is worth checking with our days between dates calculator, which uses the same method as age calculators.

Google Sheets supports the same functions with the same syntax.

Frequently asked questions

Why does Excel show a date instead of a number?
The result cell is formatted as a date. Change the cell format to General or Number.
How do I count days from a date to today?
Use =TODAY()-A1. It recalculates each time the workbook opens.