itsgrady
Board Regular
- Joined
- Sep 11, 2022
- Messages
- 132
- Office Version
- 2021
- Platform
- Windows
- 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))
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))