Weekdays only for 1 Month

itsgrady

Board Regular
Joined
Sep 11, 2022
Messages
132
Office Version
  1. 2021
Platform
  1. Windows
  2. MacOS
Need help.

In C5 I have a date (10/1/24)

Need to list weekdays of October only. In column B, starting in B8, I would like to list all weekdays (Monday - Friday) of the month in C5. I need the formula to stop after the month given in C5 (don’t list or show November).

If the month starts on a Saturday or Sunday don’t list that date. Just start with the first weekday.

I tried working on a formula (see below) but it gives all dates for the month and I can’t figure it out. Thanks for any help.

=IF(WEEKDAY(DATE(YEAR($C$5),MONTH($C$5),1))=1, DATE(YEAR($C$5),MONTH($C$5),2), DATE(YEAR($C$5),MONTH($C$5),1)) + ROW(A1) - 1
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
How about
Fluff.xlsm
ABC
1
2
3
4
501/10/2024
6
7
801/10/2024
902/10/2024
1003/10/2024
1104/10/2024
1207/10/2024
1308/10/2024
1409/10/2024
1510/10/2024
1611/10/2024
1714/10/2024
1815/10/2024
1916/10/2024
2017/10/2024
2118/10/2024
2221/10/2024
2322/10/2024
2423/10/2024
2524/10/2024
2625/10/2024
2728/10/2024
2829/10/2024
2930/10/2024
3031/10/2024
31
Data
Cell Formulas
RangeFormula
B8:B30B8=WORKDAY(C5-1,SEQUENCE(NETWORKDAYS(C5,EOMONTH(C5,0))))
Dynamic array formulas.
 
Upvote 1
Solution
How about
Fluff.xlsm
ABC
1
2
3
4
501/10/2024
6
7
801/10/2024
902/10/2024
1003/10/2024
1104/10/2024
1207/10/2024
1308/10/2024
1409/10/2024
1510/10/2024
1611/10/2024
1714/10/2024
1815/10/2024
1916/10/2024
2017/10/2024
2118/10/2024
2221/10/2024
2322/10/2024
2423/10/2024
2524/10/2024
2625/10/2024
2728/10/2024
2829/10/2024
2930/10/2024
3031/10/2024
31
Data
Cell Formulas
RangeFormula
B8:B30B8=WORKDAY(C5-1,SEQUENCE(NETWORKDAYS(C5,EOMONTH(C5,0))))
Dynamic array formulas.
Thank you so much for a great solution to my problem. As always, your help is greatly appreciated. Have fun today!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
How can I list all day for that month? Your formula is a lot more concise than mine. Thanks.
 
Upvote 0
How about
Excel Formula:
=C5+SEQUENCE(DAY(EOMONTH(C5,0)),,0)
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,152
Members
452,615
Latest member
bogeys2birdies

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