Find dates within a range that match weekdays

VBGeek

New Member
Joined
Nov 2, 2012
Messages
8
Hi all, I have a spreadsheet as shown below. I'm trying to write formulas to display the weekday date where the day number falls within the date range StartDate & EndDate.

For example:
in row one the range is 02NOV21-06NOV21 and has 2(Tue), 4(Thu) and 6(Sat) so what I need to show is 02NOV21 (Tue), 04NOV21 (Thu) & 06NOV212 (Sat).
The same applies to each row.
Any Excel Gurus with advice out there would be much appreciated

StartDateEndDateMonTueWedThuFriSatSun
02NOV2106NOV21
2​
46
09NOV2114DEC21246
17DEC2131DEC2125
20DEC2103JAN221
04JAN2225FEB2225
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
where do you need to show that , and in what format
Not 100% sure i follow
is the table you show - the data you have already got populated and looking for the dates

What do you want to show for the last row
4-jan-22 to 25-feb-22
is that ALL the tuesday dates and all the Friday dates listed in the range?

And again the 2nd to last row, only has a monday flagged with a 1 - so is that list every monday between 20-dec-21 to 3rd jan-22

maybe examples of results expected

can you use XL2BB to post a spreadsheet sample
or on a share like onedrive, dropbox, googlesheet
 
Upvote 0
Hi and many thanks for the response. I actually figured out how to do it in Python so please close this thread.
 
Upvote 0
If you can post your solution, then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution as we don't use "mark as solution" as "closing a thread".
 
Upvote 0

Forum statistics

Threads
1,214,981
Messages
6,122,565
Members
449,089
Latest member
Motoracer88

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