How to Calculate Number of Weeks Between Two Dates in Excel?
Calculating the number of weeks between two dates in Excel is a common task in project tracking, payroll planning, HR reporting, academic schedules, and timeline analysis. Microsoft Excel provides multiple ways to calculate weeks using formulas, depending on whether you need whole weeks, partial weeks, or weeks based on working days.
In this guide, you will learn simple and accurate methods to calculate weeks between dates using Excel formulas.
Understanding How Excel Handles Dates
In Microsoft Excel, dates are stored as serial numbers. Each date represents the number of days since January 1, 1900. This makes it easy to calculate date differences using subtraction.
Example
| Date | Excel Value |
|---|---|
| 01-Jan-2024 | 45292 |
| 15-Jan-2024 | 45306 |
If you subtract these values, Excel returns the number of days between dates, which can then be converted into weeks.
Method 1: Calculate Weeks Using Simple Date Subtraction
The easiest way to calculate weeks is to subtract the start date from the end date and divide by 7.
Formula
=(End_Date - Start_Date) / 7Example Table
| Start Date | End Date | Formula | Result |
|---|---|---|---|
| 01-Jan-2024 | 29-Jan-2024 | =(B2-A2)/7 | 4 |
This method returns exact weeks, including decimals if the period is not a full number of weeks.
Key benefit:
Useful when you want precise week values, including partial weeks.
Method 2: Calculate Complete Weeks Between Two Dates
If you need only full weeks, you can combine date subtraction with the INT function.
Formula
=INT((End_Date - Start_Date) / 7)Example Table
| Start Date | End Date | Formula | Result |
|---|---|---|---|
| 01-Jan-2024 | 30-Jan-2024 | =INT((B2-A2)/7) | 4 |
This removes decimal values and shows only completed weeks.
Best use case:
Project milestones, reporting periods, or contract durations where partial weeks are ignored.
Method 3: Calculate Weeks Using the DATEDIF Function
Excel includes a hidden function called DATEDIF, which is designed for date calculations.
Formula
=DATEDIF(Start_Date, End_Date, "d") / 7This formula first calculates days between dates, then converts days into weeks.
Example Table
| Start Date | End Date | Formula | Result |
|---|---|---|---|
| 01-Feb-2024 | 22-Feb-2024 | =DATEDIF(A2,B2,”d”)/7 | 3 |
Why use this method:
It gives more control when working with day-based date calculations.
Method 4: Round Weeks Up or Down Using ROUND Functions
Sometimes you need to round weeks instead of keeping decimals.
Round Down Weeks
=ROUNDDOWN((End_Date - Start_Date)/7,0)Round Up Weeks
=ROUNDUP((End_Date - Start_Date)/7,0)Example Table
| Start Date | End Date | Rounded Down | Rounded Up |
|---|---|---|---|
| 01-Mar-2024 | 20-Mar-2024 | 2 | 3 |
Practical uses:
Billing cycles, payroll estimation, subscription planning.
Method 5: Calculate Weeks Based on Working Days Only
If your calculation should exclude weekends, use NETWORKDAYS.
Formula
=NETWORKDAYS(Start_Date, End_Date) / 5This method assumes 5 working days per week.
Example Table
| Start Date | End Date | Working Weeks |
|---|---|---|
| 01-Apr-2024 | 26-Apr-2024 | 4 |
Ideal for:
Office schedules, employee workload tracking, business timelines.
Method 6: Calculate Weeks Between Dates Including Specific Week Start
Some businesses calculate weeks based on week boundaries instead of exact days.
Formula
=(WEEKNUM(End_Date) - WEEKNUM(Start_Date)) + 1Example Table
| Start Date | End Date | Result |
|---|---|---|
| 01-May-2024 | 31-May-2024 | 5 |
Note:
This method depends on Excel’s week numbering system, which may vary based on regional settings.
Method 7: Display Weeks and Remaining Days Together
You can show both weeks and leftover days using a combined formula.
Formula
=INT((End_Date - Start_Date)/7) & " Weeks " & MOD(End_Date - Start_Date,7) & " Days"Example Output
| Start Date | End Date | Result |
|---|---|---|
| 01-Jun-2024 | 18-Jun-2024 | 2 Weeks 3 Days |
Helpful for:
Human-readable timelines, reports, and dashboards.
Common Mistakes to Avoid
Incorrect Date Formatting
Dates stored as text will break calculations. Always format cells as Date.
Reversed Date Order
If the end date is earlier than the start date, Excel returns a negative value.
Ignoring Holidays
For business calculations, consider using NETWORKDAYS.INTL to exclude holidays.
Choosing the Right Method for Your Needs
| Scenario | Recommended Method |
|---|---|
| Exact weeks with decimals | Date subtraction ÷ 7 |
| Full weeks only | INT function |
| Working weeks | NETWORKDAYS |
| Rounded billing cycles | ROUNDUP or ROUNDDOWN |
| Calendar week count | WEEKNUM |
| Friendly text output | Combined weeks and days |
Frequently Asked Questions
How do I calculate the number of weeks between two dates in Excel?
You can calculate the number of weeks between two dates by subtracting the start date from the end date and dividing the result by 7. Excel stores dates as numbers, so this method works accurately for most use cases.
How can I calculate only full weeks between two dates?
To calculate only completed weeks, use the INT function along with date subtraction. This removes decimal values and returns only full weeks between the two dates.
Can Excel calculate weeks between dates excluding weekends?
Yes, Excel can exclude weekends by using the NETWORKDAYS function. Divide the total working days by 5 to get the number of working weeks between two dates.
Does Excel have a built-in function to calculate weeks?
Excel does not have a direct weeks function, but you can use the DATEDIF function to calculate days between dates and then convert the result into weeks by dividing by 7.
How do I round weeks up or down in Excel?
You can round week values using ROUNDUP or ROUNDDOWN functions. This is useful for billing cycles, payroll estimation, and planning schedules.
Why does Excel return a negative number of weeks?
A negative value appears when the end date is earlier than the start date. Always ensure the start date comes first to avoid incorrect results.

Vaishvi Desai is the founder of Excelsamurai and a passionate Excel enthusiast with years of experience in data analysis and spreadsheet management. With a mission to help others harness the power of Excel, Vaishvi shares her expertise through concise, easy-to-follow tutorials on shortcuts, formulas, Pivot Tables, and VBA.
