Returning a list of dates dependent on type of day

penpro

New Member
Joined
Oct 15, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi there helpful people!

I have a sheet with a list of dates for 2023 in column A, and I have used the weekday function to label the days as 1 - 7 in column B, plus an xlookup table to have a column C where each day is labelled as a Monday / Tuesday / Wednesday / Thursday / Friday / Weekend / Holiday.

In another sheet in the workbook, I want to return across a row the list of dates for 2023 that are labelled as Monday / Tuesday / Wednesday / Thursday /Friday only.

Any tips on an efficient way to do this please?

Many thanks for any help you can give me.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Maybe something like this. Adjust ranges to match your data.

Book2
ABCDEFGHIJKLMNOP
1DateDay
201/01/231Holiday01/03/2301/04/2301/05/2301/06/2301/09/2301/10/2301/11/2301/12/2301/13/2301/16/2301/17/2301/18/23
301/02/232Holiday
401/03/233Tuesday
501/04/234Wednesday
601/05/235Thursday
701/06/236Friday
801/07/237Saturday
901/08/231Sunday
1001/09/232Monday
1101/10/233Tuesday
1201/11/234Wednesday
1301/12/235Thursday
1401/13/236Friday
1501/14/237Saturday
1601/15/231Sunday
1701/16/232Monday
1801/17/233Tuesday
1901/18/234Wednesday
Sheet1
Cell Formulas
RangeFormula
E2:P2E2=TRANSPOSE(FILTER($A$2:$A$19,($C$2:$C$19<>"Holiday")*($C$2:$C$19<>"Saturday")*($C$2:$C$19<>"Sunday"),""))
Dynamic array formulas.
 
Upvote 0
Solution
Genius, thanks so much! I'm loving learning how to do more with Excel :)
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,457
Members
449,083
Latest member
Ava19

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