Tip: Other languages are Google-Translated. You can visit the English version of this link.

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?

Excel Productivity Tools

300 Advanced Features Help You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 70% time.

  • Designed for 1500 work scenarios, helps you solve 80% 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.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.

Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Office Tab Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.