listing Every Monday and Friday's Day of the month

tame82

New Member
Joined
Apr 2, 2018
Messages
2
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.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
In your example, you list all the Mondays, not fridays... Jan 07 is a sunday...

Not understanding. or was that i typo?
 
Upvote 0

Excel 2010
AB
11/1/2018
21/1/20182
31/5/20186
41/8/20182
51/12/20186
61/15/20182
71/19/20186
81/22/20182
91/26/20186
101/29/20182
112/2/20186
122/5/20182
132/9/20186
142/12/20182
152/16/20186
162/19/20182
172/23/20186
Sheet9
Cell Formulas
RangeFormula
A2=DATE(YEAR(A1),1,8)-WEEKDAY(DATE(YEAR(A1),1,6))
A3=A2+4
A4=A2+7
B2=WEEKDAY(A2)


highlight a3 and a4 then copy down
 
Upvote 0
list each day of the month a Monday falls on followed by a hyphen, and then the day the following Friday falls on

Like:


Excel 2010
ABCDEFGHIJKLMN
11/1/2018
21/1/20181-58-1215-1922-2629-25-912-1619-2326-25-912-1619-2326-30
Sheet9
Cell Formulas
RangeFormula
A2=DATE(YEAR(A1),1,8)-WEEKDAY(DATE(YEAR(A1),1,6))
B2=DAY($A$2+(COLUMN(A1)-1)*7)&"-"&DAY($A$2+4+(COLUMN(A1)-1)*7)
 
Upvote 0

Excel 2010
ABC
12018January01 - 05
2January08 - 12
3January15 - 19
4January22 - 26
5January29 - 02
6February05 - 09
7
1cc
Cell Formulas
RangeFormula
B1=DATE(A1,1,8)-WEEKDAY(DATE(A1,1,6))
B2=B1+7
C1=TEXT(B1,"dd")&" - "&TEXT(B1+4,"dd")


The Date in B1 etc is custom formatted as "mmmm".
Copy the formulas down.
Edit the formatting if required.
 
Upvote 0
Thank you all for your quick and amazing solutions to my issue.

I apologize if I was not great at explaining what I meant. I had hoped the crude text representation would help.

It seems I was overcompensating this solution by a fair margin.

I was able to apply Sheetspread's solution and it worked very well. I appreciate the time you all took to help me.

Like:

Excel 2010
ABCDEFGHIJKLMN
11/1/2018
21/1/20181-58-1215-1922-2629-25-912-1619-2326-25-912-1619-2326-30

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet9

Worksheet Formulas
CellFormula
A2=DATE(YEAR(A1),1,8)-WEEKDAY(DATE(YEAR(A1),1,6))
B2=DAY($A$2+(COLUMN(A1)-1)*7)&"-"&DAY($A$2+4+(COLUMN(A1)-1)*7)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,972
Messages
6,122,530
Members
449,088
Latest member
RandomExceller01

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