Excel beginner dates networkdays datedif business days

Calculate Date Differences in Excel

Calculate Date Differences is a Excel function that networkdays counts the number of working days (monday through friday) between two dates, automatically excluding weekends.. Formula Genius generates and validates this formula automatically from a plain-English prompt.

Find the exact number of days, months, or years between two dates. Including business days that skip weekends and holidays.

The Formula

Prompt

"Calculate the number of business days between two dates, excluding weekends"

Excel
=NETWORKDAYS(A2,B2)

NETWORKDAYS counts the number of working days (Monday through Friday) between two dates, automatically excluding weekends.

Step-by-Step Breakdown

  1. A2 is the start date
  2. B2 is the end date
  3. Weekends (Saturday and Sunday) are automatically excluded
  4. Optional third argument: a range of holiday dates to also exclude
  5. For simple day count: =B2-A2 (includes weekends)

Edge Cases & Warnings

  • Both start and end dates are included in the count
  • If end date is before start date, returns a negative number
  • Non-date values return #VALUE! error
  • For months between dates: =DATEDIF(A2,B2,"M")
  • DATEDIF is undocumented but works — it's a compatibility function from Lotus 1-2-3

Examples

Prompt

"Start: Jan 1, End: Jan 31"

Excel
23 business days (excluding 8 weekend days)
Prompt

"Start: Dec 20, End: Jan 3 (with holidays)"

Excel
=NETWORKDAYS(A2,B2,holidays) excludes holidays too

Frequently Asked Questions

How do I include holidays?

Add a range of holiday dates as the third argument: =NETWORKDAYS(A2,B2,D2:D10) where D2:D10 lists your holiday dates.

How do I get months between dates?

Use =DATEDIF(start,end,"M") for complete months, or =(YEAR(B2)-YEAR(A2))*12+MONTH(B2)-MONTH(A2) for a month count.

Can't find what you need?

Describe any formula in plain English and Formula Genius will generate, explain, and validate it — instantly.