How can I use Google Sheets to calculate the number of weeks between two given dates?

Google Sheets is a powerful spreadsheet program that offers various functions and features to assist with data analysis and calculations. One of its useful functions is the ability to calculate the number of weeks between two given dates. This can be done by using the built-in formula “WEEKNUM” which calculates the week number for a given date. By subtracting the week numbers of the two dates, the number of weeks between them can be easily determined. This feature can be particularly helpful for tracking project timelines, planning schedules, or simply keeping track of time intervals. With its intuitive interface and easy-to-use functions, Google Sheets provides a convenient and efficient way to calculate the number of weeks between two dates.

Google Sheets: Calculate the Number of Weeks Between Dates


You can use the following formulas to calculate the number of weeks between two dates in Google Sheets:

Formula 1: Calculate Full Weeks Between Two Dates

=INT((B2-A2)/7)

Formula 2: Calculate Full Weeks and Days Between Two Dates

=INT((B2-A2)/7)&" weeks, "& MOD((B2-A2), 7) &" days"

Both formulas assume that cell A2 contains the start date and cell B2 contains the end date.

The following examples show how to use each formula in practice with the following columns of start and end dates in Google Sheets:

Example 1: Calculate Full Weeks Between Two Dates

We can type the following formula into cell C2 to calculate the number of full weeks between the start date in cell A2 and the end date in cell B2:

=INT((B2-A2)/7)

We can then click and drag this formula down to each remaining cell in column C:

Google Sheets calculate weeks between two dates

Here’s how to interpret the output:

  • There are 4 full weeks between 1/1/2022 and 2/4/2022.
  • There are 20 full weeks between 1/7/2022 and 5/29/2022.
  • There are 2 full weeks between 1/20/2022 and 2/5/2022.

And so on.

Example 2: Calculate Full Weeks and Days Between Two Dates

=INT((B2-A2)/7)& " weeks, " & MOD((B2-A2), 7) & " days"

We can then click and drag this formula down to each remaining cell in column C:

Google Sheets calculate weeks and days between two dates

Here’s how to interpret the output:

  • There are 4 weeks and 6 days between 1/1/2022 and 2/4/2022.
  • There are 20 weeks and 2 days between 1/7/2022 and 5/29/2022.
  • There are 2 weeks and 2 days between 1/20/2022 and 2/5/2022.

And so on.

Additional Resources

The following tutorials explain how to perform other common tasks in Google Sheets:

x