I have a workbook with two worksheets.
Sheet1 has a beginning date in D3 and an ending date in J3. (Schedule starting with Sat and ending with Fri).
Sheet2 has a list of birthdates. NAMES are A3:A47 and BIRTHDATES are B3:B47
So, my previous experience I've managed to work an array formula that would list the names and dates of birthdays for the current month. I'm having difficulty however adjusting the formula to find the names/dates if the month and day of Sheet2!B3:B47 fall between Sheet1!D3 and Sheet1!J3.
This formula for example, will only return data for the month of date in Sheet1!D3.
I do hope my explanation is clear, an example sheet can be worked up if needed.
Sheet1 has a beginning date in D3 and an ending date in J3. (Schedule starting with Sat and ending with Fri).
Sheet2 has a list of birthdates. NAMES are A3:A47 and BIRTHDATES are B3:B47
So, my previous experience I've managed to work an array formula that would list the names and dates of birthdays for the current month. I'm having difficulty however adjusting the formula to find the names/dates if the month and day of Sheet2!B3:B47 fall between Sheet1!D3 and Sheet1!J3.
VBA Code:
=IFERROR(INDEX($A$3:$A$47,SMALL(IF(MONTH($B$3:$B$47)=MONTH(Sheet1!$D$3),ROW($A$3:$A$47)-ROW($A$3)+1),ROWS($1:1))),"")
I do hope my explanation is clear, an example sheet can be worked up if needed.