FormulaCraft

How to get the ISO week number from a date in Excel and Google Sheets

Excel & Google Sheets
=WEEKNUM(B2,2)

Verified example

Computed by a real spreadsheet engine on the sample data below.

DateISO Week Number
2023-12-311
2024-01-011
2024-01-022
2024-01-032

=WEEKNUM(B2,2)53

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter your date in cell B2 of your spreadsheet.
  2. 2In cell C2, input the formula provided for Excel or Google Sheets.
  3. 3Press Enter to see the ISO week number corresponding to the date in B2.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What does the second parameter in the WEEKNUM function mean?

The second parameter specifies the day of the week that the week begins on and the numerical value of the first week of the year.

Why do I get different results compared to other week number functions?

Different functions like ISO.WEEKNUM or YEARWEEK might use different standards for calculating the week number.

Can I use this formula for dates before 1900?

Excel has limitations with dates before 1900, but Google Sheets supports dates back to 1899-12-30.

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: