ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Dates
  3. How to Calculate Weeks Between Dates in Excel

How to Calculate Weeks Between Dates in Excel

By ExcelReady Team·Updated November 3, 2026·7 min read

The short answer

To find the weeks between dates in Excel, subtract the start date from the end date and divide by 7: =(B2-A2)/7. That gives weeks with decimals, such as 15.43. For full weeks only, use =INT((B2-A2)/7). For weeks plus leftover days, join INT and MOD. DATEDIF has no week unit, so divide its day count by 7.

Key takeaways

  • =(B2-A2)/7 gives the weeks between two dates, with decimals.
  • =INT((B2-A2)/7) gives complete weeks only. Use ROUNDUP to count any part week as a full week.
  • Show weeks and days with =INT((B2-A2)/7)&" weeks, "&MOD(B2-A2,7)&" days".
  • DATEDIF has no "w" unit. Use DATEDIF(A2,B2,"d")/7 if you want to use DATEDIF.
  • For working weeks, divide NETWORKDAYS by 5.
On this page+
  1. How to calculate weeks between two dates
  2. Full weeks only: INT or ROUNDDOWN
  3. Round weeks up or to one decimal place
  4. Count weeks including the start and end dates
  5. Show weeks and days together
  6. Does DATEDIF calculate weeks?
  7. Count work weeks with NETWORKDAYS
  8. Weeks between a date and today
  9. Practise it

To calculate the weeks between dates in Excel, subtract the start date from the end date and divide by 7: =(B2-A2)/7. Excel stores dates as day numbers, so the subtraction gives days, and dividing by 7 turns them into weeks. This guide shows how to get decimal weeks, full weeks, weeks plus days, rounded-up weeks and working weeks, all on the same small project list.

How to calculate weeks between two dates#

Subtract the earlier date from the later date, then divide by 7. Excel counts each date as a whole number of days, so B2-A2 is the number of days between them.

All the examples use this table:

ABC
1ProjectStartEnd
2Website4 Mar 202420 Jun 2024
3Audit8 Jan 202419 Feb 2024
4Training15 Nov 20231 Feb 2024

In D2, type:

Excel formula
=(C2-B2)/7

The Website project is 108 days long, so the result is 15.43 weeks (rounded for display). The brackets matter. Without them, Excel divides B2 by 7 first, because division comes before subtraction, and you get a meaningless number.

If the result shows as a date, the cell picked up a date format. Change it to General or Number on the Home tab. The guide to counting days between dates covers the day count itself in more detail.

Full weeks only: INT or ROUNDDOWN#

Use INT to keep only the complete weeks and drop the part week:

Excel formula
=INT((C2-B2)/7)

For the Website project, 15.43 becomes 15. INT removes the decimal part of a positive number. =ROUNDDOWN((C2-B2)/7,0) gives the same answer for positive results. They only differ for negative results: INT(-15.43) is -16, while ROUNDDOWN gives -15.

ProjectDaysDecimal weeksFull weeks
Website10815.4315
Audit426.006
Training7811.1411

The Training project crosses a new year, and the formula doesn't care: date subtraction works across months and years.

Round weeks up or to one decimal place#

Rounding depends on the question you are answering. Pick the function that matches it:

QuestionFormulaWebsite result
How many weeks, roughly?=ROUND((C2-B2)/7,1)15.4
How many weeks do we bill, counting any part week?=ROUNDUP((C2-B2)/7,0)16
How many complete weeks?=ROUNDDOWN((C2-B2)/7,0)15

ROUND changes the stored value, not just the display. That matters if you add the weeks up later. The ROUND function guide explains the second argument: 1 keeps one decimal place and 0 rounds to a whole number.

Count weeks including the start and end dates#

Plain subtraction doesn't count the start day. From Monday 8 January to Monday 15 January is 7 days, so =(C2-B2)/7 returns 1 week. That is usually what you want for durations, ages and deadlines.

Sometimes both ends should count, such as a course that runs from the first class day to the last class day inclusive. Then add 1 to the day count before dividing:

Excel formula
=(C2-B2+1)/7

For the Audit project (8 January to 19 February), this gives 43 days, or 6.14 weeks, instead of exactly 6. Decide which rule your report uses, write it in a note next to the column, and use the same rule in every row. Mixing the two is a common reason why two people get different week counts from the same dates.

Show weeks and days together#

To show the result as "15 weeks, 3 days", use INT for the weeks and MOD for the leftover days. MOD returns the remainder after dividing, so MOD(108,7) is 3.

Excel formula
=INT((C2-B2)/7)&" weeks, "&MOD(C2-B2,7)&" days"

The & joins the numbers and the words into one piece of text. For the Training project it shows 11 weeks, 1 days. To fix the grammar for 1, you could add an IF, but most reports accept the short form. The result is text, so you can't do sums with it. Keep a numeric weeks column next to it if you need totals. The guide to MOD and INT explains both functions.

Does DATEDIF calculate weeks?#

No. DATEDIF has units for years, months and days ("y", "m", "d", "md", "ym" and "yd"), but there is no "w" unit for weeks. Divide its day count by 7 instead:

Excel formula
=DATEDIF(B2,C2,"d")/7

This returns the same 15.43 as the subtraction. DATEDIF needs the start date first and returns #NUM! if the start is later than the end, which can be a useful warning. DATEDIF is a hidden function: Excel doesn't suggest it as you type, but it works in every version. The DATEDIF function guide lists every unit, and the article on months between dates shows where DATEDIF really shines.

Count work weeks with NETWORKDAYS#

NETWORKDAYS counts the weekdays (Monday to Friday) between two dates, including both ends. Divide by 5 to get working weeks:

Excel formula
=NETWORKDAYS(B2,C2)/5

The Website project has 79 working days, so this gives 15.8 work weeks. Add a range of holiday dates as the third argument to skip public holidays: =NETWORKDAYS(B2,C2,F2:F10)/5. For a version that counts hours, see working hours between dates.

Weeks between a date and today#

Use TODAY() as the end date to count weeks up to now:

Excel formula
=INT((TODAY()-B2)/7)

The result grows by one each week, because TODAY() updates whenever the file recalculates. This is handy for "weeks since hire" or "weeks on the waiting list". For years and months of service instead, see how to calculate age and tenure, and for fractions of a year, the YEARFRAC function.

A quick check for any of these formulas: if the answer is negative, the dates are the wrong way round. Put the later date first in the subtraction.

Practise it#

Every week formula starts with a correct day count. Practise days between dates with DAYS and DATEDIF in a live spreadsheet, then practise ROUND, ROUNDUP and ROUNDDOWN to turn days into clean week counts. Each formula is checked the moment you press Enter. Or start with the full-weeks exercise on this page.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

How many full weeks did the Website project run? In D2, subtract the start date in B2 from the end date in C2, divide by 7 and use INT to drop the part week.

fx
ABCDE
1
Project
Start
End
Full weeks
2
Website
45355
45463
3
Audit
45299
45341
4
Training
45245
45323
5
6
7

Tip: Put the subtraction in brackets first, (C2-B2), then divide by 7. The dates are 108 days apart.

Practise this in a lesson

LessonDays between dates: DAYS, DATEDIF and TODAYMeasure the gap between two dates in days, months and years, and calculate tenure as of today.LessonROUND, ROUNDUP and ROUNDDOWNControl decimals properly, which isn't the same as formatting.Function guideDATEDIFCalculate tenure, age and contract length with DATEDIF. Learn every unit (Y, M, D, YM), the hidden-function quirks, and practice live.Function guideROUNDRound to decimals, whole numbers or the nearest thousand with Excel's ROUND. Learn when formatting isn't enough, then practice live.

Frequently asked questions

How do I calculate the number of weeks between two dates in Excel?

+

Subtract the earlier date from the later one and divide by 7, for example =(B2-A2)/7. Wrap it in INT to keep whole weeks only, or ROUND to keep one decimal place.

Does DATEDIF have a weeks option?

+

No. DATEDIF accepts y, m, d, md, ym and yd, but not w. Use =DATEDIF(A2,B2,"d")/7, which gives the same result as subtracting the dates and dividing by 7.

How do I show weeks and days between two dates?

+

Use INT for the weeks and MOD for the leftover days: =INT((B2-A2)/7)&" weeks, "&MOD(B2-A2,7)&" days". For 108 days, it shows 15 weeks, 3 days.

Why does my weeks formula show a date?

+

Excel sometimes copies the date format into the result cell. Select the cell and change the format to General or Number, and the date turns into the number of weeks.

How do I count weeks between a date and today?

+

Use TODAY() as the end date: =INT((TODAY()-A2)/7). The answer updates every day when the file recalculates.

Sources

  • DATEDIF function - Microsoft Support
  • INT function - Microsoft Support
  • NETWORKDAYS function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. How to calculate weeks between two dates
  2. Full weeks only: INT or ROUNDDOWN
  3. Round weeks up or to one decimal place
  4. Count weeks including the start and end dates
  5. Show weeks and days together
  6. Does DATEDIF calculate weeks?
  7. Count work weeks with NETWORKDAYS
  8. Weeks between a date and today
  9. Practise it

Keep reading

Dates· 6 min read

Days Between Two Dates in Excel (and DATEDIF)

To count the days between two dates in Excel, subtract the earlier date from the later one: =C2-B2. DAYS does the same with the end date first: =DAYS(C2,B2). For whole months or years, use DATEDIF with the start date first and a unit in quotes, like =DATEDIF(B2,C2,"Y").

Dates· 6 min read

How to Calculate Months Between Two Dates

To count the whole months between two dates in Excel, use =DATEDIF(B2,C2,"m") with the start date first. For partial months as a decimal, use =YEARFRAC(B2,C2)*12. To count calendar months regardless of the day, use =(YEAR(C2)-YEAR(B2))*12+MONTH(C2)-MONTH(B2). Each method answers a slightly different question, so pick the one that matches yours.

Dates· 7 min read

Calculate Working Hours Between Two Dates in Excel

For whole days, count the working days and multiply by the hours in a working day: =NETWORKDAYS(A2,B2,holidays)*8. When the start and end include times, use a formula that counts the full days in between and then adds the part-days at each end, clipped to working hours with MEDIAN. Multiply the result by 24 to get hours.

More on dates

  • YEAR, MONTH and DAY in Excel: Split a Date Into Parts
  • Year-to-Date Totals in Excel
  • YEARFRAC in Excel: Part of a Year Between Two Dates
  • Add Days, Months or Years to a Date in Excel
  • How to Add Hours and Minutes to a Time in Excel
  • Calculate Age in Years and Months in Excel
All dates articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free