Skip to main content

Get week number from date in Excel

In Excel, how could you get week number from the given date quickly and easily? Normally, the WEEKNUM function can help you to solve this task as quickly as possible.


Calculate to get the week number from date in a year

By default, the WEEKNUM function can help you to get the week number from any given date in a year, the generic syntax is:

=WEEKNUM(date, [return_type])
  • date: The date that you want to get the week number from.
  • return_type: Optional. A number that determines a day the week begins. Default number is 1. (indicates the week begins from Sunday)
  • DATE: This function is used to combine year, month and day numbers from separate cells into a valid date.

The number of return_type indicates the week begins:

Return_type Week begins on
1 or 17 or omitted Sunday
2 or 11 Monday
12 Tuesday
13 Wednesday
14 Thursday
15 Friday
16 Saturday
21 Monday (ISO week date system)

Tips: For the WEEKNUM function, there are two different week numbering systems are used:

  • System 1: The week contains January 1 is considered the 1st week of the year. In this system, the week traditionally starts on Sunday.
  • System 2: (ISO week date system) In this system, the week begins on Monday, and the week number 1 is set to the first week of the year that contains a Thursday.

All of the return types listed above apply to System 1, but the return type 21 is used in System 2.


To calculate the week number from date in traditional system:

For getting the week number from the given date, you can use the below formula:

=WEEKNUM(B2)

And then, drag the fill handle down to the cells that you want to use, and all week numbers have been returned from the dates:


To calculate the week number from date in ISO system:

If you need to return the ISO week number from some dates, please apply the following formula:

=WEEKNUM(B2,21)

And then, you will get the following result:


Calculate to get the week number from date in a month

Sometimes, you need to get the week numbers within months instead of years, in Excel, there isn’t a direct function for doing this. But you can combine the WEEKNUM, DATE and MONTH FUNCTIONS together to solving this task.


Calculate week numbers of month from date (A week beginning on Sunday):

Please enter or copy the below formula into a blank cell where you want to get the result:

=WEEKNUM(B2)-WEEKNUM(DATE(YEAR(B2), MONTH(B2),1))+1

And then, you will get the results as following screenshot shown:


Calculate ISO week numbers of month from date (A week beginning on Monday):

For getting the ISO week numbers of a month from the date, you should use the following formula:

=WEEKNUM(B2,21)-WEEKNUM(DATE(YEAR(B2), MONTH(B2),1),21)+1

And all the ISO week numbers of the month have been extracted as below screenshot shown:


Relative functions used:

  • WEEKNUM:
  • This function is used to extract the week number from the given date.

Relative week number articles:

  • Get Month From Week Number And Year In Excel
  • If you have two columns in Excel, one contains year numbers, the other contains week numbers, just shown as below, how can you get the months directly from them in the next column?

The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Description


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (1)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
The formula "=WEEKNUM(B2,21)-WEEKNUM(DATE(YEAR(B2), MONTH(B2),1),21)+1" doesn't work properly01-01-2021 1
02-01-2021 1
03-01-2021 1
04-01-2021 -51
05-01-2021 -51
06-01-2021 -51
07-01-2021 -51
08-01-2021 -51
09-01-2021 -51
10-01-2021 -51
11-01-2021 -50

Any help?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations