Count the Number of Weeks Between Two Dates

Excel Formulas › Date & Time

All versions

Counting whole weeks between two dates is just simple date subtraction divided by seven — the trick is choosing between whole weeks and a fractional answer.


Quick formula: Divide the day gap by 7 and drop the fraction for whole weeks:
=INT((End-Start)/7)

Dates in Excel are stored as day numbers, so subtracting them gives days; dividing by 7 gives weeks.

Functions used (tap for the full reference guide):

The example

A project starts Jan 1 and ends Mar 12, 2026, and you want the span in weeks.

AB
1LabelValue
2Start date2026-01-01
3End date2026-03-12
4Days apart70
5Whole weeks10

The formula

Take the day gap and divide by seven, keeping only the whole part:

=INT((B3-B2)/7) // 70 / 7 = 10 whole weeks

How it works

Step by step:

  1. B3-B2 subtracts the two date serials and returns the number of days between them (70).
  2. Dividing by 7 converts days to weeks (10.0 here).
  3. INT drops any fraction so you get whole weeks only.
  4. Use MOD(B3-B2,7) alongside it to get the leftover days.

For an exact fractional answer (10.0, 10.4, …) just use =(B3-B2)/7 without INT.

Try it: interactive demo

Interactive

Enter the two dates as day counts apart — the week math updates live.

Variations

Whole weeks and leftover days

Pair INT with MOD to report both numbers.

=INT((B3-B2)/7)&" weeks "&MOD(B3-B2,7)&" days"

Round to the nearest week

Use ROUND instead of INT when you want the closest week, not the floor.

=ROUND((B3-B2)/7,0)

Pitfalls & errors

If the result shows as a date, set the cell format to General or Number.

Make sure both cells are real dates, not text. A left-aligned date is usually text — fix it with DATEVALUE.

Practice workbook

📊
Download the free Count the Number of Weeks Between Two Dates practice workbook
Change the yellow start and end dates; weeks and leftover days recalculate instantly.

Frequently asked questions

Does this count partial weeks?
INT gives whole weeks only. Drop INT for a decimal answer, or add MOD(...,7) to report the leftover days.
Why divide by 7 and not use a week function?
Excel has no built-in 'weeks between' function; date subtraction divided by 7 is the standard, reliable approach.
Can I get weeks between in business days?
Yes — replace the subtraction with NETWORKDAYS(Start,End) and divide by 5 for work-weeks.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Months between two dates · Workdays between two dates

Function references: INTDATEDIFMOD