Formula guide · Excel and Google Sheets · Updated May 13, 2026

Get Week Number from a Date

Convert a date into a week number for weekly spreadsheet reports.

Quick Answer

Use WEEKNUM for a simple week number, or ISOWEEKNUM when reports should follow ISO week rules.

Copyable Formula

=ISOWEEKNUM(A2)

Syntax

=WEEKNUM(date)

Excel and Google Sheets

Worked Example

AB
DateISO week
2026-05-1320

Result: Returns the week number for the date.

Steps

  • Confirm whether your report uses standard or ISO week numbering.
  • Use WEEKNUM for common spreadsheet week numbers.
  • Use ISOWEEKNUM when Monday-based ISO weeks are required.
  • Keep the original date for sorting and filtering.

Common Mistakes

  • Mixing WEEKNUM and ISOWEEKNUM in the same report.
  • Using week numbers without year labels across multiple years.
  • Converting dates to text too early.

Excel vs Google Sheets Notes

The core idea works in both Excel and Google Sheets, but separators, function availability, and array behavior can vary by account, locale, and version.

Editorial check: This guide was last updated May 13, 2026. Formula behavior can vary by Excel version, Google Sheets rollout, and spreadsheet locale.

FAQ