ExcelFlux

WEEKNUM function

Conversion — a serial number to a number representing where the week falls numerically with a year.

Date and time

Where can you use it?

Planning and operations teams. Use this group to work with dates and times in calendars, delivery schedules, shifts and period reporting.

Scenario in the workbook

Count the week containing January 1 as week 1. Use ISOWEEKNUM when the ISO rule is required.

A worked example from the workbook

RowA
6Excel date serial
746023
846081
945351
Record 1
=WEEKNUM(A7)

Expected result1

See the inputs and instructions for all 3 examples

Syntax

WEEKNUM(serial_number,[return_type])

Copyable formulas

English Excel · en-US
=WEEKNUM(DATE(2026,1,5),2)
Turkish Excel · tr-TR
=HAFTASAY(TARİH(2026;1;5);2)

Expected result

2

Worked examples

Count the week containing January 1 as week 1. Use ISOWEEKNUM when the ISO rule is required.

Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.

Row A
6 Excel date serial
7 46023
8 46081
9 45351
Case Formula Expected result
Record 1 =WEEKNUM(A7) 1
Record 2 =WEEKNUM(A8) 9
Record 3 =WEEKNUM(A9) 9
Microsoft Excel reference