Excel Formula Days between Two Dates
Counting days between two dates in Excel is simpler than most people expect: subtract the start date from the end date. That gives you the number of calendar days between them. This guide shows the formula with a project schedule example.
Formula Syntax
Use this base syntax for excel formula days between two dates and replace the ranges with your own spreadsheet columns.
end_date - start_date
Need this formula for your exact sheet?
Generate a custom excel formula days between two dates formula with your own columns, criteria, and spreadsheet layout.
Step-by-step Example
A program management spreadsheet tracks Project duration and needs a formula-driven result instead of manual filtering.
| Start | End |
|---|---|
| 2026-06-01 | 2026-06-18 |
| 2026-07-04 | 2026-07-10 |
| 2026-08-12 | 2026-08-30 |
Resulting formula
=B2-A2
The formula evaluates the Project duration rows and returns 17. Replace the sample ranges with your actual columns, then adjust the criteria so the result matches your workbook.
Try It Now
The generator is pre-filled for excel formula days between two dates. Edit the prompt to match your columns, criteria, and spreadsheet layout.
Generated formula
How it works
Need more formulas every day?
HelpFormula Pro is $7.99/mo for faster spreadsheet work across Excel and Google Sheets.
- ✓ Higher daily formula generation limits
- ✓ Saved formula history for reuse
- ✓ Excel formula language selection
Common Variations
- Calendar days between dates
- Working days with NETWORKDAYS
- Include the start date
FAQ
How do I set up Excel Formula Days between Two Dates for Project duration?
Map the sample columns to your own sheet first, then replace the formula ranges with the real ranges from your workbook. Keep text criteria in quotes and verify that date or number columns are stored as real values.
Can this formula handle calendar days between dates?
Yes. Use the same formula pattern and change the criteria, helper column, or lookup value for calendar days between dates. If the logic becomes more complex, generate a custom version with the free tool.
What should I check if the Excel Formula Days between Two Dates result is wrong?
Check that every referenced range covers the same rows, locked references use dollar signs where needed, and the criteria type matches the data. For this page, also confirm that the Project duration fields are formatted consistently.