To find the number of weeks between two dates in Excel, subtract the earlier date from the later one and divide by 7. This gives you the exact number of weeks, including fractional weeks. No add-ins or special tools are required—just basic date formatting and arithmetic. Excel stores dates as serial numbers, making this calculation reliable and precise.

What You'll Need

  • A working copy of Microsoft Excel (2010 or later)
  • Two valid date values entered in separate cells
  • Basic understanding of cell references (e.g., A1, B2)

Step-by-Step

  1. Open your Excel workbook and enter the start date in one cell (e.g., A2). Type the date in a recognized format like 2024-03-15, 3/15/2024, or March 15, 2024. Excel will automatically convert it to a serial number.
  2. In another cell (e.g., B2), enter the end date using the same format. Ensure both dates are in the same column or row for clarity, but location doesn’t affect the formula as long as references are correct.
  3. Select a third cell (e.g., C2) where you want the result to appear. This will hold your week count formula.
  4. Type the formula: =(B2-A2)/7. Press Enter. This subtracts the start date from the end date to get the total days, then divides by 7 to convert to weeks.
  5. Format the result cell as a number with two decimal places. Right-click the cell, choose Format Cells, select Number, and set Decimal places to 2. This shows partial weeks clearly, like 3.43 weeks.
  6. If you only want whole weeks (rounded down), use =INT((B2-A2)/7). This removes the decimal portion and returns the full number of completed weeks.
  7. If you want to round to the nearest whole week, use =ROUND((B2-A2)/7,0). This rounds up or down based on the decimal value (e.g., 3.5 becomes 4).
  8. For weeks rounded up (always ceiling), use =CEILING((B2-A2)/7,1). This ensures even a single extra day counts as an additional week.
  9. Test your formula by changing the dates. For example, if A2 is 2024-03-15 and B2 is 2024-03-22, the result should be exactly 1.00 week.

Common Mistakes

  • Using text instead of actual dates: If a date appears left-aligned in the cell, Excel is treating it as text. Fix this by re-entering the date or using Data > Text to Columns > Date format.
  • Swapping start and end dates: If the end date is earlier than the start date, you’ll get a negative result. Always ensure the end date is later than or equal to the start date.
  • Forgetting to divide by 7: Simply subtracting two dates gives days, not weeks. Many users forget the division step and report incorrect values.
  • Using inconsistent date formats: Mixing MM/DD/YYYY and DD/MM/YYYY across systems can cause Excel to misinterpret dates. Use ISO format (YYYY-MM-DD) for reliability.
  • Applying number formatting too early: If you format the cell as a date before applying the formula, Excel may show a date instead of a number. Format after the formula is entered.

Tips

  • Use named ranges for clarity. Select A2 and name it StartDate via the Name Box (left of the formula bar). Then use =(EndDate-StartDate)/7 — easier to read and maintain.
  • Combine with conditional formatting to highlight results over 4 weeks. Select the result column, go to Home > Conditional Formatting > New Rule > Use a formula: =C2>4, then set a fill color.
  • If working with large datasets, copy the formula down using Fill Down (Ctrl+D on Windows, Cmd+D on Mac) after entering it in the first row.
  • Use the TODAY() function dynamically: =(TODAY()-A2)/7 calculates weeks from today to a past date. Useful for tracking project durations or deadlines.
  • For week numbers instead of elapsed weeks, use WEEKNUM() — but that returns the calendar week number of a date, not the span between two dates. Don’t confuse the two functions.
  • Always validate with a known interval. For example, 7 days = 1 week, 14 days = 2 weeks. Test with simple values before applying to complex data.

Troubleshooting

  • Formula returns #VALUE!: One or both cells contain non-date text. Check the cell content — delete and re-enter the date. Use =ISNUMBER(A2) to verify Excel recognizes it as a number.
  • Formula returns a date instead of a number: The result cell is formatted as a date. Right-click > Format Cells > Number > Decimal places: 2.
  • Result is too high or too low: Double-check the date order. Also ensure no extra spaces or hidden characters are in the date cells. Use =CLEAN(A2) to remove non-printing characters.
  • Formula shows 0 even though dates are different: The dates may be less than a day apart. For example, 2024-03-15 10:00 and 2024-03-15 14:00 = 4 hours = 0.17 weeks. Use =INT((B2-A2)/7) if you only care about full weeks.
  • Formula doesn’t update when dates change: Check that Calculation Options is set to Automatic. Go to Formulas > Calculation Options > Automatic.
  • Working across different regional settings: If Excel interprets 03/04/2024 as March 4 in the US but April 3 in the UK, specify the date in ISO format (2024-04-03) to avoid ambiguity.

Frequently Asked Questions

Can I calculate weeks between dates across different years?

Yes. Excel handles year transitions automatically. Subtracting 2023-12-25 from 2024-01-08 gives 14 days, or exactly 2 weeks.

What if one date is blank?

If either cell is empty, the formula returns a #VALUE! error. Use =IF(AND(ISNUMBER(A2),ISNUMBER(B2)),(B2-A2)/7,"Missing date") to show a helpful message instead.

Does this work with time included in the date?

Yes. Excel includes time as a decimal portion of the serial number. 12 hours = 0.5 days. So 3.5 days = 0.5 weeks. The formula accounts for hours and minutes automatically.

Can I get the result in whole weeks only?

Yes. Use =INT((B2-A2)/7) to discard the fractional part, or =CEILING((B2-A2)/7,1) to round up any partial week to the next whole week.

Is there a built-in WEEKS function in Excel?

No. Excel has WEEKNUM() for finding which week of the year a date falls in, but no function to calculate the span between two dates in weeks. You must use subtraction and division.

Why does my result show as a date when I expect a number?

You likely formatted the result cell as a date. Right-click the cell, choose Format Cells, select Number, and set decimal places to 2. This ensures it displays as a numeric value, not a calendar date.