WEEKNUM function in Google Sheets
Returns a number representing the week of the year where the provided date falls.
=WEEKNUM(date, [type])WEEKNUM syntax and parameters
Two arguments, one required.
- dateanyRequired
The date for which to determine the week number. Must be a reference to a cell containing a date, a function returning a date type, or a number.
- typenumberOptional
[ OPTIONAL - default is 1 ] - A number representing the day that a week starts on as well as the system used for determining the first week of the year (1=Sunday, 2=Monday).
WEEKNUM examples
Formulas you'll actually reuse.
The calendar week of an invoice date (week 1 holds 1 January, weeks start Sunday):
=WEEKNUM(B2)Result
331 January is always week 1 here — unlike ISOWEEKNUM, which gives 53:
=WEEKNUM(DATE(2027, 1, 1))Result
1
WEEKNUM in Excel
Same name — your formula ports as-is.
Try WEEKNUM in the playground
Edit the example — nothing to install.
Preloaded with the WEEKNUM formula from Example 1 — change anything and watch it respond.
Related functions
More ways Google Sheets gets this done.
- DATEConverts a provided year, month, and day into a date.DateExcel
- DATEDIFCalculates the number of days, months, or years between two dates.DateExcel
- DATEVALUEConverts a provided date string in a known format to a date value.DateExcel
- DAYReturns the day of the month that a specific date falls on, in numeric format.DateExcel
- DAYSReturns the number of days between two dates.DateExcel
- DAYS360Returns the difference between two days based on the 360 day year used in some financial interest calculations.DateExcel