ISO WEEK NUMBER FORMULA

VBA learner ITG

Active Member
Joined
Apr 18, 2017
Messages
267
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi all,

I have a date which is 31/12/2019 and when i use this formula : =WEEKNUM(E8435,21)

its returning week 1 2019

My question is why doesnt it show week 52 2019

Any help is appreciated.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
WEEKNUM doesn't return a year, just a week number. I think you'll find it's week 1 2020, since that week contains the first Thursday of 2020.
 
Upvote 0
If i use the below syntax it shows it correctly.

=WEEKNUM(E8435,2)& TEXT(E8435," - yyyy")

"Week 53 2019"

But if i use

=WEEKNUM(E8435,21)& TEXT(E8435," - yyyy")

It appears as week 1 2019 intead of the above!

Below taken from Microsoft website to use for start of the week day.


1 or omittedSunday1
2Monday1
11Monday1
12Tuesday1
13Wednesday1
14Thursday1
15Friday1
16Saturday1
17Sunday1
21Monday2
 
Upvote 0
If you read the full help file, you'll note that the 21 option treats the week with the first Thursday of the year as week 1. Since the week containing 31/12/2019 has the first Thursday of 2020, it is week one. Your TEXT formula simply takes the year of the passed date with no further considerations. Why are you using 21 as the argument?
 
Upvote 0

Forum statistics

Threads
1,214,793
Messages
6,121,619
Members
449,039
Latest member
Mbone Mathonsi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top