WEEKNUM Formula Calculating Incorrectly

JayReddy

New Member
Joined
Sep 9, 2014
Messages
9
Hi,

Looking for some help please ...

I'm trying to calculate week numbers for specfic dates (DD/MM/YYYY format) and the WEEKNUM calculation is not returning accurate results. I am trying to calculate the week numbers based on 1st Jan 2014 being in Week 01.

The formula that I am using is as follows:

=WEEKNUM(A2)

The week number returned for some dates is correct, however, for a number of records this is being returned incorrectly as per the below:
[TABLE="width: 537"]
<tbody>[TR]
[TD]Date
[/TD]
[TD]Week Number (With formula)
[/TD]
[TD]Correct Week Number
[/TD]
[/TR]
[TR]
[TD]12/01/2014
[/TD]
[TD]3
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]11/01/2014
[/TD]
[TD]2
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]10/01/2014
[/TD]
[TD]2
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]09/01/2014
[/TD]
[TD]2
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]08/01/2014
[/TD]
[TD]2
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]07/01/2014
[/TD]
[TD]2
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]06/01/2014
[/TD]
[TD]2
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]05/01/2014
[/TD]
[TD]2
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]04/01/2014
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]03/01/2014
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]03/01/2014
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]02/01/2014
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]01/01/2014
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]

Can anyone help and suggest how this can be corrected please? ...

Thanks in advance for any hints / suggestions.

Regards,

Jay
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I'm assuming it has to do with the calendar. For example:

January 12th, 2014 is a Sunday. It's the third Sunday on the calendar page. December 29th is the "first Sunday".

Try weeknum(A2, 2)
 
Upvote 0
Hi

Weeknumber is calculated differently around the world. Not sure which country you come from and which rule
Your country uses to deside when week 1 starts in a year. This link explains the differences.
In Norway we uses ISO week number, and Excel doesn't have a function that will give you the correct weeknumber historically.
I use this formula instead. If Your date is in 2:
1+INT((A2-DATE(YEAR(A2+4-WEEKDAY(A2+6)),1,5)+WEEKDAY(DATE(YEAR(A2+4-WEEKDAY(A2+6)),1,3)))/7)
 
Upvote 0

Forum statistics

Threads
1,222,123
Messages
6,164,086
Members
451,872
Latest member
TimothyLynn

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