Genereate Week number and Year over changing dates

Confidentjohn

Board Regular
Joined
Mar 3, 2009
Messages
73
Hello

I was wondering if someone could help.

I know how to generate the current weeknumber and also the current year.

The trouble I have is the year jump when pulling this down as a dynamic formula.

Basically I need to genereate a list of week numbers with the year. This will update every week as the week changes, How to I write a formula to know that when the weeks number has reached 0 to go back to 52 and minus the year by one.

My current sheet has two columns.

Column A This displays the week number which is set with the following formulas

cell a1
WEEKNUM(NOW())-1
cell a2 onwards
IF(A1-1=0,52,A1-1)
This is working out that if the week number reaches 0 to start again at 52

column B is displaying the year, however I want to be able to move the year to 2010 when the weeks jump over.


Is there an easy way to do this?

Cheers

John
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
*facepalm, yes it would. Thank you

Talk about trying to completely over complicate the matter. I've been looking at this spreadsheet far too long and lost sight of the easy.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,853
Members
449,051
Latest member
excelquestion515

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