Home › Guides › How to Calculate Workdays
Date & Time

How to Calculate Workdays

Last updated: 2026-09-06

⚡ Quick Answer

NETWORKDAYS calculates the exact number of whole working days between two dates.

=NETWORKDAYS(Start_Date, End_Date, Holidays_Range)

📊 Visual Demo

Book1 - Excel
HOME · INSERT · FORMULAS · DATA
fx =NETWORKDAYS(Start_Date, End_Date, Holidays_Range)
ABCDE
112026-03-012026-03-31=NETWORKDAYS(B2, C2)22 Workdays
22Project SpanMarch 2026Holidays ExcludedAccurate Timeline
33PlanningResource LoadEvaluatedSchedule Ready

🧠 Deep Dive

NETWORKDAYS calculates the exact number of whole working days between two dates.

Key Insights

  • Excel dates are serial numbers (Jan 1 1900 = 1).
  • TODAY() and NOW() are volatile functions.

Common Mistakes

  • Subtracting text-dates resulting in #VALUE!.
  • Using TODAY() without freezing history.

Pro Tips

  • Paste-special values for snapshots.
  • Store holidays in a named range.

FAQ

What does this formula do in plain English?

NETWORKDAYS calculates the exact number of whole working days between two dates.

Why is my formula not working?

Subtracting text-dates resulting in #VALUE!.

Does this work in Google Sheets?

Yes, this syntax is fully compatible with Google Sheets.

What is the most common mistake?

Using TODAY() without freezing history.

Related Guides

How to Extract Date ComponentsHow to Calculate Date IntervalsHow to Use TODAY and NOWExcel Error Hub

Need Complete Playbooks?

Download our verified manuals covering ERP Cleanup and Modeling.

Explore Playbook Series (From ₹199)

11. Deep-dive: choose the input shape before choosing the formula

A reliable spreadsheet solution begins with the shape of the data. Ask whether the source is a single column, a rectangular table, a list with headers, or a mixture of values and text. Many apparently difficult formula problems become simple once the data is normalized. Keep headers separate from records, keep one fact per column, and avoid inserting explanatory text into a numeric field. If the source contains merged cells, repeated headers, subtotals, or blank separator rows, clean those structures before building calculations that depend on the range.

For a small workbook, select a few representative rows and calculate the expected answer independently. For a larger workbook, create a small test area containing known inputs and expected outputs. This makes future changes safer because you can rerun the same checks after modifying the formula.

12. Boundary cases that deserve a test

These cases are valuable because formulas often appear correct on ordinary rows while failing at the edges. A production workbook should make the intended behavior explicit rather than relying on luck.

13. Maintainability: make the next edit safe

Use Excel Tables where they improve automatic range expansion, give important assumptions clear labels, and avoid unexplained hard-coded constants. If a formula contains a business rule such as a threshold, tax rate, discount, or working-day convention, consider storing that assumption in a clearly labeled cell. Then a reviewer can change the assumption without editing the formula itself.

Keep calculation columns together and name them according to the question they answer. A column called Net Amount is easier to audit than one called Calc2. For complicated formulas, break the logic into helper columns when that makes the intermediate result visible. A slightly longer workbook can be much safer than one enormous formula that nobody can debug.

14. Troubleshooting decision tree

If the formula returns the wrong number, first confirm the inputs. If the inputs are correct, inspect references and criteria. If references are correct, test the formula on one row or a tiny range. If the small case works but the full range fails, inspect blanks, data types, duplicates, hidden characters, array dimensions, and calculation settings. If Excel shows an error code, use that error as evidence rather than immediately hiding it.

When a result is suspiciously plausible, verify it independently. A wrong lookup can return a perfectly normal value; a wrong date calculation can also look reasonable. Trust should come from verification, not from the absence of an error message.

15. Practical audit checklist

  1. Can another person identify the source data?
  2. Can they explain the formula in one sentence?
  3. Are assumptions visible?
  4. Are references stable when the formula is copied?
  5. Have blanks and invalid values been tested?
  6. Has at least one result been independently checked?
  7. Will the method still work when new rows are added?
  8. Does the formula behave consistently with the workbook's Excel version?

16. Final verification example

After implementing the formula, change one source value that should affect the result and confirm that the output changes in the expected direction. Then change a value that should not affect the result and confirm that it does not. Finally, restore the original values and compare the final output with the independently calculated answer. This simple three-part test catches a surprising number of reference and criteria mistakes.