Hi,
I have a spreadsheet with around 31 tabs (for the months of Jan, Feb, March etc).
I know how to do =Jan 1!A1+1 on Jan 2 and =Jan 2!A1+1 on Jan 3 etc or =Jan 1!A1+1 on Jan 2 and =Jan 1!A1+2 on Jan 3 etc and that works but I would have to do that on every sheet so I may as well just manually write the date in on each. I would like a formula so that I can put 1/1/13 in A1 on the first tab and it will automatically put 2/1/13 in A1 on the second tab, then 3/1/13 in A1 on the third tab and so on.
I got the below off a forum here but for the life of me, it is not working.
Can someone please help?
Re: Sequential Dates Over Multiple Worksheets
It could be as simple as
=Sheet01!B1+1 on sheet02 and =Sheet02!B1+1 on sheet03 etc.
Alternatively, to avoid having to create a separate version of the formula on each sheet, you could use the following user defined function.
To use this, open the VBA editor (Alt F11) , add a new module (right click on the appropriate VBA project - insert- module) and paste the above in.Please Login or Register to view this content.
Then add the formula
=AddSequentialDate("B1",B1)
to each B2 on sheets 02 onwards. The function works out which sheet it is on and adds one to the sheet before.
Hope this helps.
Bookmarks