Absolute Calendar Formulae

Juggler_IN

Active Member
Joined
Nov 19, 2014
Messages
349
Office Version
  1. 2003 or older
Platform
  1. 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.
VBA Code:
Cell B1={0;7;14;21;28;35}+{1,2,3,4,5,6,7}+(A1-1)

The output is:
WEDTHUFRISATSUNMONTUE
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?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Is this what you need?
Cell Formulas
RangeFormula
B1:H1B1=TEXT(EOMONTH($A$1,-MONTH($A$1))+COLUMNS($B1:B1),"DDD")
B2:H2B2=IF(COLUMNS($B2:B2)>=WEEKDAY($A$1,13),$A$1+COLUMNS($B2:B2)-WEEKDAY($A$1,13),"")
B3:H7B3=IF((MAX($B2:$H2)+COLUMNS($B3:B3))>EOMONTH($A$1,0),"",MAX($B2:$H2)+COLUMNS($B3:B3))
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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