Juggler_IN
Active Member
- Joined
- Nov 19, 2014
- Messages
- 349
- Office Version
- 2003 or older
- Platform
- Windows
I want to put together a Spreadsheet for Absolute Calendar. An Absolute Calendar week counts weeks starting from January 1st, no matter what day of the week it is. In other words, January 1st through 7th is always week one. If January 1st is a Wednesday, than each week of the year will be Wednesday through Tuesday and tallied accordingly.
The array formula below (across B2:H7) gives me the January month where A1 is 1st Jan-2020.
The output is:
Now 31st Jan is is a Friday. So, Feb 1st should be below Sat for Wed through Tue week. How do I get the month of Feb and subsequent months with a Week from Wed through Tue?
The array formula below (across B2:H7) gives me the January month where A1 is 1st Jan-2020.
VBA Code:
Cell B1={0;7;14;21;28;35}+{1,2,3,4,5,6,7}+(A1-1)
The output is:
WED | THU | FRI | SAT | SUN | MON | TUE |
01-Jan-20 | 02-Jan-20 | 03-Jan-20 | 04-Jan-20 | 05-Jan-20 | 06-Jan-20 | 07-Jan-20 |
08-Jan-20 | 09-Jan-20 | 10-Jan-20 | 11-Jan-20 | 12-Jan-20 | 13-Jan-20 | 14-Jan-20 |
15-Jan-20 | 16-Jan-20 | 17-Jan-20 | 18-Jan-20 | 19-Jan-20 | 20-Jan-20 | 21-Jan-20 |
22-Jan-20 | 23-Jan-20 | 24-Jan-20 | 25-Jan-20 | 26-Jan-20 | 27-Jan-20 | 28-Jan-20 |
29-Jan-20 | 30-Jan-20 | 31-Jan-20 | | | | |
Now 31st Jan is is a Friday. So, Feb 1st should be below Sat for Wed through Tue week. How do I get the month of Feb and subsequent months with a Week from Wed through Tue?