To find the number of weeks between two dates in Excel, subtract one date from the other and divide by 7. Excel stores dates as serial numbers, so subtracting them gives days, and dividing by 7 converts that to weeks. This method works for any two valid dates and is commonly used in project timelines, payroll tracking, or event planning. No add-ins or special tools are required—just basic Excel functions.

What You'll Need

  • A computer with Microsoft Excel installed (version 2007 or later)
  • Two valid dates in cells (e.g., start date in A1, end date in B1)
  • Basic understanding of cell references (like A1, B2)

Step-by-Step

  1. Open your Excel workbook and enter the start date in one cell (e.g., cell A1). Use a standard date format like 1/15/2023 or 15-Jan-2023. Excel must recognize it as a date, not text.
  2. Enter the end date in another cell (e.g., cell B1). Ensure it’s in the same format as the start date. If Excel doesn’t recognize it as a date, it will display as text and the formula will not work.
  3. In a third cell (e.g., C1), type the formula: =B1-A1. This calculates the number of days between the two dates. Press Enter.
  4. To convert days to weeks, modify the formula to: =(B1-A1)/7. Press Enter. Excel will now show a decimal number representing the total weeks (e.g., 12.5714 for 88 days).
  5. If you want only whole weeks (ignoring partial weeks), wrap the formula in the INT function: =INT((B1-A1)/7). This truncates the decimal, giving you the full weeks only.
  6. If you want to round to the nearest whole week, use the ROUND function: =ROUND((B1-A1)/7,0). This rounds up or down based on the decimal value.
  7. Format the result cell as General or Number. Right-click the cell, select Format Cells, then choose Number under Category. Set decimal places to 0 if you used INT or ROUND.
  8. Test your formula by changing either date. The result should update automatically. If it doesn’t, check that both cells are formatted as Date and not as Text.

Common Mistakes

  • Entering dates as text instead of real date values. If a date is left-aligned in the cell instead of right-aligned, Excel treats it as text. Fix this by re-typing the date or using the DATE function: =DATE(2023,1,15).
  • Swapping the start and end dates. Subtracting an earlier date from a later one gives a positive result. If the end date is before the start date, you’ll get a negative number. Use ABS() if you want a positive result regardless: =ABS((B1-A1)/7).
  • Forgetting to divide by 7. Simply subtracting dates gives days. Many users assume Excel automatically converts to weeks and get confused by large numbers.
  • Using incorrect cell references. Double-check that your formula references the correct cells. If you copy the formula to another row, Excel adjusts references automatically—use $ signs (e.g., $A$1) if you need to lock them.
  • Not accounting for time components. If your dates include times (e.g., 1/15/2023 14:30), the decimal portion affects the result. Use INT() on both dates before subtracting: =INT(B1)-INT(A1) to ignore time.

Tips

  • Use the TODAY() function to calculate weeks from today: =(TODAY()-A1)/7. This is useful for tracking how many weeks have passed since a start date.
  • If you need weeks between multiple date pairs, drag the formula down a column after setting it once. Excel auto-fills relative references.
  • For fiscal or work-week calculations (e.g., 5-day work weeks), divide by 5 instead of 7. Adjust the divisor based on your definition of a "week."
  • Use conditional formatting to highlight results over a threshold (e.g., >10 weeks) by selecting the result column, then Home > Conditional Formatting > New Rule > Use a formula: =C1>10.
  • Combine with WEEKNUM() if you need the calendar week number for each date: =WEEKNUM(A1) returns the week number of the year. Subtracting these gives week difference, but only if both dates are in the same year.
  • Always check date formats. Go to the Home tab, Number group, and verify the cell format is Date. If not, change it from the dropdown.

Troubleshooting

  • Formula shows #VALUE! This means one or both cells contain text that Excel can’t interpret as a date. Re-enter the dates manually or use the DATE function. Check for extra spaces or symbols.
  • Formula shows ##### This means the column is too narrow. Widen the column by dragging the column header boundary, or double-click it to auto-fit.
  • Result is 0 or negative Check if the end date is earlier than the start date. If intentional, use ABS() to get absolute value. If not, swap the cell references in the formula.
  • Formula doesn’t update Go to Formulas > Calculation Options and ensure it’s set to Automatic. If it’s Manual, press F9 to recalculate.
  • Excel changes the date format If Excel converts your input to a different date format, go to Format Cells > Number > Date and select the desired format (e.g., 3/14/2023).
  • Working with dates across years The formula works regardless of year. Excel’s serial number system handles dates from 1900 to 9999. No special handling needed.

Frequently Asked Questions

Can I calculate weeks between dates that span multiple years?

Yes. Excel’s date system treats all dates as serial numbers from January 1, 1900. Subtracting any two valid dates, no matter how far apart, gives accurate day differences. Divide by 7 for weeks.

What if my dates include time?

Times are stored as decimal fractions of a day. To ignore time, wrap each date in INT(): =(INT(B1)-INT(A1))/7. This removes the time portion and keeps only the date.

Can I get only full weeks without decimals?

Yes. Use INT() to truncate: =INT((B1-A1)/7). This removes everything after the decimal point. Use ROUND() if you prefer rounding to the nearest whole week.

Why does my result show as a date instead of a number?

The cell is formatted as Date. Right-click the cell, choose Format Cells, then select Number or General. Date formatting will display numbers as calendar dates, which confuses the result.

Is there a built-in WEEKS function in Excel?

No. Excel has no dedicated WEEKS function. The standard method is to subtract dates and divide by 7. Some versions include DATEDIF(), but it doesn’t have a "weeks" unit—only days, months, or years.

Can I use this method in Google Sheets?

Yes. Google Sheets uses the same date serial system. The exact same formulas—=(B1-A1)/7—work identically in Google Sheets with no changes needed.