Hello Marantsmi,
Perhaps its time for some results. First, here is your date row:
- Code: Select all
=AZ3+7
AZ3 must contain a date and the cell containing the formula must be formatted as Date with a format of "mmm yyyy". Let me know if you need help with that.
The following is the formula for your monthly columns header (the one in the merged cells):
- Code: Select all
=EDATE(AY2,1)
AY2 must contain a date and the cell containing the formula must be formatted as Date with a format of "mmmm yyyy". In fact, the date in AY2 may have the following kind formula, though the sample was lifted from column BJ:
- Code: Select all
=IF(BF2="",BE2, BF2)
The purpose of the condition is to accommodate either 4 or 5 weekly columns being referred to. The point is that either BE or BF must be the first of the merged cells.
And here is your formula for row 7:
- Code: Select all
=(SUM(AA$7:AY$7)-SUMIF(AA$3:AY$3,"EOM",AA$7:AY$7))/(COUNTA(AA$7:AY$7)-COUNTIF(AA$3:AY$3,"EOM"))
It is the same formula for all columns. I have chosen the range arbitrarily. You can change it as you wish. Observe, however, that reference is made to the "EOM" in row 3 of the monthly columns. If it is missing the returned result will be faulty, as I am sure you can see. Let me know if you need the formula explained.
The best way to set up additional columns will be to create weeks first, then insert the monthly columns between them. This way the weekly date headers will turn out correctly. Row 7 isn't so sensitive. You can delete cells anywhere in the sequence. The monthly dates in row 2 alternate. You can always copy any set of 4 to the next set of four, then merge it with the fifth if required before copying any single month's header to the next column. I didn't create a formula for the "EOM". It should travel on the same ticket as the formula above it. In fact, I imagine that you will copy an entire previous month's column to the next month's column which you inserted between the weekly columns that extend further into the future.
Of course, the above doesn't allow you to start a new sheet. The formula can be adapted if such becomes your need in the future. For the moment you will find great easy in extending the sheet to thr right.
I have also not bothered to include the actual usage in my formula. Adaptation in this regard will be very easy and you may not require my assistance for it which will, however, be at your disposal - of course.
Have a great day!
Sisyphus
Have a great day!
Sisyphus
I do this for "honour and country" - much less of the latter, actually.
If I helped you, award points, plenty of them.
If I bored you, deduct points for being too long-winded. (I know, :lol)