Hello,
I am trying to list out the days of each month for every Monday and Friday in a given year.
I have cell A1 contain a year, for example 2018. Under the year beginning with B1 will be the months listed out. The row below the months, beginning with C1 should list each day of the month a Monday falls on followed by a hyphen, and then the day the following Friday falls on.
For Example
2018
Jan Feb
01-07 08-14 15-21 22-28 29-04
and so on.
I need the formula to fill down the row to base itself on the year provided.
If I can get a reliable way to calculate all the Mondays, the following Fridays should be easy enough. I was close with:
=TEXT(DAY(TEXT(DATE($A$1,1,8)-WEEKDAY(DATE($A$1,1,6)),"00"))+((COLUMN(A3)-COLUMN($A3))*7),"dd")
but it goes awry in March, listing the 4th instead of the 5th.
I can get accurate numbers formatting it this way
=TEXT(DAY(TEXT(DATE($A$1,1,8)-WEEKDAY(DATE($A$1,1,6)),"00"))+((COLUMN(A3)-COLUMN($A3))*7),"00")
But if I do that, I can't find a way to turn that into a day of the month for each month. as apposed to accurate numbers from 1 to 365 in increments of 7.
I'm not great with Excel and this has taken me a while along with plenty of help from this post from excelbanter.com:
https://www.excelbanter.com/excel-discussion-misc-queries/117186-calculate-every-monday.html
Any help is greatly appreciated.
I am trying to list out the days of each month for every Monday and Friday in a given year.
I have cell A1 contain a year, for example 2018. Under the year beginning with B1 will be the months listed out. The row below the months, beginning with C1 should list each day of the month a Monday falls on followed by a hyphen, and then the day the following Friday falls on.
For Example
2018
Jan Feb
01-07 08-14 15-21 22-28 29-04
and so on.
I need the formula to fill down the row to base itself on the year provided.
If I can get a reliable way to calculate all the Mondays, the following Fridays should be easy enough. I was close with:
=TEXT(DAY(TEXT(DATE($A$1,1,8)-WEEKDAY(DATE($A$1,1,6)),"00"))+((COLUMN(A3)-COLUMN($A3))*7),"dd")
but it goes awry in March, listing the 4th instead of the 5th.
I can get accurate numbers formatting it this way
=TEXT(DAY(TEXT(DATE($A$1,1,8)-WEEKDAY(DATE($A$1,1,6)),"00"))+((COLUMN(A3)-COLUMN($A3))*7),"00")
But if I do that, I can't find a way to turn that into a day of the month for each month. as apposed to accurate numbers from 1 to 365 in increments of 7.
I'm not great with Excel and this has taken me a while along with plenty of help from this post from excelbanter.com:
https://www.excelbanter.com/excel-discussion-misc-queries/117186-calculate-every-monday.html
Any help is greatly appreciated.