To calculate the weeks between two dates in Excel, subtract the start date from the end date and divide the result by 7. For example, if your start date is in cell A2 and your end date is in cell B2, use the formula =(B2-A2)/7. This works because Excel stores dates as sequential serial numbers, meaning a simple subtraction provides the total number of days between them.

What You'll Need

  • Microsoft Excel (any modern version)
  • A dataset containing at least two columns of dates (Start Date and End Date)
  • Cells formatted as "Date" for the inputs and "Number" or "General" for the result

Step-by-Step

  1. Enter Your Dates: Input your start date in one cell (e.g., A2) and your end date in another cell (e.g., B2). Ensure these are entered in a format Excel recognizes as a date (e.g., MM/DD/YYYY or DD/MM/YYYY depending on your region).
  2. Select the Result Cell: Click on the cell where you want the number of weeks to appear (e.g., C2).
  3. Enter the Basic Formula: Type =(B2-A2)/7 and press Enter. This calculates the exact number of weeks, including decimals for partial weeks.
  4. Adjust for Whole Weeks (Optional):
    • If you only want full weeks completed, wrap the formula in the INT function: =INT((B2-A2)/7).
    • If you want to round to the nearest whole week, use the ROUND function: =ROUND((B2-A2)/7, 0).
  5. Format the Result Cell: If the result looks like a date (e.g., 1/7/1900) instead of a number, go to the Home tab, locate the Number group in the ribbon, and change the dropdown menu from "Date" to "General" or "Number."
  6. Apply to Multiple Rows: Hover your mouse over the bottom-right corner of the result cell (C2) until a small black cross appears. Click and drag this "fill handle" down to apply the calculation to all other date pairs in your list.

Common Mistakes

  • Incorrect Cell Formatting: The most common error is leaving the result cell formatted as a "Date." Because Excel sees the result (e.g., 4.28 weeks) as a number, it tries to convert that number back into a date, resulting in a confusing output. Always ensure the result cell is set to "General" or "Number."
  • Wrong Subtraction Order: If you subtract the end date from the start date (A2-B2), you will get a negative number. Always subtract the earlier date from the later date.
  • Text-Formatted Dates: If your dates were imported from another software, they might be stored as "Text." Excel cannot perform math on text. You can tell if a date is text if it is left-aligned in the cell by default.
  • Missing Parentheses: Writing =B2-A2/7 without parentheses will result in an incorrect answer. According to the order of operations (PEMDAS), Excel will divide A2 by 7 first and then subtract that from B2. The parentheses (B2-A2) are mandatory to ensure the subtraction happens first.

Tips

  • Using DATEDIF: For more complex calculations, you can use the hidden =DATEDIF(A2, B2, "d") / 7 formula. The "d" tells Excel to find the difference in days, which you then divide by 7.
  • Dynamic Dates: If you want to calculate the weeks from a start date up until today, use the TODAY function: =(TODAY()-A2)/7. This will update automatically every time you open the spreadsheet.
  • Adding Labels: To make your data clearer, you can use a custom number format. Right-click the result cell, select Format Cells > Number > Custom, and type 0.00 "Weeks". This keeps the cell as a number for math purposes but displays the word "Weeks" next to the value.

Troubleshooting

If your formula is not working as expected, try these steps in order:

  • Check for #VALUE! Error: This usually means one of your dates is not actually a date, but text. To fix this, select the column of dates, go to the Data tab, select Text to Columns, and click Finish immediately. This often forces Excel to re-evaluate text as dates.
  • Check for #NUM! Error: This typically happens if you use the DATEDIF function and the start date is later than the end date. Ensure the earlier date is the first argument in the formula.
  • Verify Regional Settings: If you enter 01/12/2023 and Excel doesn't recognize it, your system might be set to US format (MM/DD) while you are typing in UK format (DD/MM), or vice versa. Check your computer's regional settings or try typing the date as "Dec 1, 2023" to see if Excel recognizes it.
  • Clear Formatting: If the cell is behaving strangely, go to the Home tab, click Clear (the eraser icon) in the Editing group, and select Clear Formats before re-entering the formula.

Frequently Asked Questions

Can I calculate only business weeks?

Excel does not have a "business week" unit, but you can calculate business days using =NETWORKDAYS(A2, B2) and then divide that result by 5 to get the number of 5-day work weeks.

How do I round up to the next full week?

Use the ROUNDUP function: =ROUNDUP((B2-A2)/7, 0). This is useful for project management where any portion of a week is counted as a full week of effort.

Does this method work in Google Sheets?

Yes, the =(B2-A2)/7 formula works identically in Google Sheets as it does in Microsoft Excel.

What is the difference between using /7 and DATEDIF?

Simple subtraction is faster and easier for weeks. DATEDIF is more powerful for calculating specific intervals like "total months" or "years minus months," which simple division cannot do accurately due to varying month lengths.

Why is my result a decimal?

A decimal occurs because the two dates are not exactly divisible by 7. For example, 10 days equals 1.42 weeks. Use the INT or ROUND functions mentioned in the step-by-step section to remove the decimals.