Return weekday only for a given month

itsgrady

Board Regular
Joined
Sep 11, 2022
Messages
132
Office Version
  1. 2021
Platform
  1. Windows
  2. MacOS
I want to exclude the last day of the previous month and only display the weekdays of the specified month in cell B7. The formula below shows the last weekday of the pervious month. Only need to show the month in cell B7.

Can I get help to show only a list of all the weekdays of the month typed in B7?

I envision that you can type 11-1 in B7 and in a column A will display all Mondays-Fridays dates of the given month.

=IF(WEEKDAY(DATE(YEAR($B$7),MONTH($B$7),ROW(A1)))=2,DATE(YEAR($B$7),MONTH($B$7),ROW(A1)),IF(OR(WEEKDAY(DATE(YEAR($B$7),MONTH($B$7),ROW(A1)))=1,WEEKDAY(DATE(YEAR($B$7),MONTH($B$7),ROW(A1)))=7),DATE(YEAR($B$7),MONTH($B$7),ROW(A1))+2,DATE(YEAR($B$7),MONTH($B$7),ROW(A1))-1))
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
How about
Fluff.xlsm
AB
1
2
3
4
5
6
701/11/202301/11/2023
802/11/2023
903/11/2023
1006/11/2023
1107/11/2023
1208/11/2023
1309/11/2023
1410/11/2023
1513/11/2023
1614/11/2023
1715/11/2023
1816/11/2023
1917/11/2023
2020/11/2023
2121/11/2023
2222/11/2023
2323/11/2023
2424/11/2023
2527/11/2023
2628/11/2023
2729/11/2023
2830/11/2023
29
Data
Cell Formulas
RangeFormula
A7:A28A7=WORKDAY(B7-1,SEQUENCE(NETWORKDAYS(B7,EOMONTH(B7,0))))
Dynamic array formulas.
 
Upvote 1
Solution
How about
Fluff.xlsm
AB
1
2
3
4
5
6
701/11/202301/11/2023
802/11/2023
903/11/2023
1006/11/2023
1107/11/2023
1208/11/2023
1309/11/2023
1410/11/2023
1513/11/2023
1614/11/2023
1715/11/2023
1816/11/2023
1917/11/2023
2020/11/2023
2121/11/2023
2222/11/2023
2323/11/2023
2424/11/2023
2527/11/2023
2628/11/2023
2729/11/2023
2830/11/2023
29
Data
Cell Formulas
RangeFormula
A7:A28A7=WORKDAY(B7-1,SEQUENCE(NETWORKDAYS(B7,EOMONTH(B7,0))))
Dynamic array formulas.

Excellent! Fantastic! Wonderful! Outstanding! Marvelous! Great!

Thanks for the quick - Kudos.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,114
Members
453,021
Latest member
Justyna P

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