Jan 26 2023 08:43 AM
I want to put the first day of the month in a cell and then put in a formula that will recognize and put the date of one day of the week in another cell. Please look at the spreadsheet picture for February 2023 as an example of what I want.
Jan 26 2023 09:13 AM
SolutionJan 26 2023 12:35 PM
Jan 29 2023 06:54 PM
Here's a formula that will return the date of the first Wednesday of any month in any year.
=LET(FstDa,DATE(CurrYr,CurrMo,1),FstDa+CHOOSE(WEEKDAY(FstDa),3,2,1,0,6,5,4))
That formula requires a relatively new version of Excel (in order for the LET function to work).
If you don't have a new enough version of Excel, this formula will work:
=DATE(CurrYr,CurrMo,1)+CHOOSE(WEEKDAY(DATE(CurrYr,CurrMo,1)),3,2,1,0,6,5,4)
In those formulas, you can substitute cell references containing the current year and current month for the text reading "CurrYr" and "CurrMo" or -- preferable -- use named ranges.
I've attached a spreadsheet with both of these formulas working. I'll leave it up to you to complete the rest of your spreadsheet.
Jan 23 2024 04:40 AM
@mathetes can you assist with a formula to fill columns with dates for only Monday and Thursday every week.
Jan 23 2024 11:33 AM
I modified the earlier formula so it gives you the first Monday in any given month. From that starting point, it's easy to add 3 for the next Thursday, then 4 for the next Monday. And repeat.
Jan 26 2023 09:13 AM
Solution