Note: The other languages of the website are Google-translated. Back to English
English English

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:


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:


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:


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:


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

Relative functions used:

  • 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

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings

 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save
time for you.

  • Designed for
    work scenarios, helps you solve
     Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30
    -day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

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
    when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
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
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL