week number not saturday or monday start(formula not macro)

smakatura

Board Regular
Joined
May 27, 2011
Messages
141
can weeknum work with the week starting on saturday instead of sunday or monday?

if not, what are my options?
 
There is probably a more elegant solution but you could try this:-

assumes your date is in A1

Code:
=WEEKNUM(A1)+(TEXT(A1,"DDD")="SAT")-(TEXT(DATE(YEAR(A1),1,1),"DD-DDD-MMM")="01-SAT-JAN")
 
Upvote 0
A little cleaner:

Code:
=WEEKNUM(A1)+(TEXT(A1,"DDD")="SAT")-(TEXT(DATE(YEAR(A1),1,1),"DDD")="SAT")
 
Upvote 0
can weeknum work with the week starting on saturday instead of sunday or monday?

It depends how you want to define the weeks, I think. With standard WEEKNUM function 1st Jan is always in week 1 and week starts on the first Sunday (or Monday) after that.

If you want the same sort of setup but with week 2 starting on first Saturday after that then try this formula

=INT((A2-DATE(YEAR(A2),1,1)-WEEKDAY(A2+1))/7)+2
 
Upvote 0

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