Filter table rows for partial string and return column headers as dynamic array

tschatz

New Member
Joined
Jan 28, 2022
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hello,

Given the table (Table3) representing the 1:1 slots between 2 participants with the following data:

Book1
JKLMNOPQRSTU
2TIMESLOTGroup 1Group 2Group 3Group 4Group 5Group 6ParticipantSlots to participateGroup
309h00-09h15X8_1A - X8_BX8_1E - X8_2BX8_1B - X8_5X8_1C - X8_3X8_1D - X8_AX8_2A - X8_6X8_1A09h00-09h15Group 1
409h15-09h30X8_1A - X8_4X8_1C - X8_2AX8_6 - X8_3X8_2C - X8_AX8_2B - X8_BX8_1D - X8_509h15-09h30Group 1
509h30-09h45X8_2B - X8_6X8_1D - X8_3X8_2A - X8_5X8_1F - X8_2CX8_A - X8_BX8_1E - X8_410h30-10h45Group 1
609h45-10h00X8_1D - X8_6X8_A - X8_4X8_1C - X8_BX8_2A - X8_3X8_1F - X8_5X8_1B - X8_2B10h45-11h00Group 5
710h00-10h15X8_1C - X8_6X8_1D - X8_2BX8_1B - X8_AX8_2C - X8_4X8_1F - X8_3X8_5 - X8_B11h00-11h15Group 3
810h15-10h30X8_6 - X8_4X8_2B - X8_AX8_2C - X8_BX8_1B - X8_3X8_1D - X8_2AX8_1C - X8_511h15-11h30Group 6
910h30-10h45X8_1A - X8_6X8_2B - X8_4X8_2A - X8_AX8_1F - X8_BX8_1E - X8_3X8_1C - X8_2C11h30-11h45Group 6
1010h45-11h00X8_1F - X8_6X8_1D - X8_4X8_1C - X8_2BX8_1E - X8_AX8_1A - X8_3X8_2C - X8_512h00-12h15Group 5
1111h00-11h15X8_6 - X8_BX8_5 - X8_4X8_1A - X8_AX8_2B - X8_3X8_1B - X8_2CX8_1E - X8_2A12h15-12h30Group 4
1211h15-11h30X8_6 - X8_AX8_3 - X8_BX8_1C - X8_4X8_1E - X8_5X8_1F - X8_2BX8_1A - X8_2A
1311h30-11h45X8_1E - X8_6X8_5 - X8_3X8_1F - X8_AX8_1B - X8_BX8_2A - X8_4X8_1A - X8_2C
1411h45-12h00X8_4 - X8_3X8_1E - X8_BX8_2B - X8_5X8_2C - X8_6X8_1C - X8_AX8_1B - X8_2A
1512h00-12h15X8_2C - X8_3X8_1B - X8_4X8_1D - X8_BX8_6 - X8_5X8_1A - X8_2BX8_1F - X8_2A
1612h15-12h30X8_1F - X8_4X8_1D - X8_2CX8_A - X8_3X8_1A - X8_5X8_2A - X8_BX8_1B - X8_6
1712h30-12h45X8_1E - X8_2CX8_4 - X8_BX8_5 - X8_A
INPUT Overall
Cell Formulas
RangeFormula
T3:T11T3=FILTER(Table3[TIMESLOT],MMULT(--(ISNUMBER(SEARCH($S$3,Table3[[Group 1]:[Group 6]]))),SEQUENCE(COLUMNS(Table3[@[Group 1]:[Group 6]]),,,0))>0)
Dynamic array formulas.


I would like to dynamically query (via Cell S3) the Timeslots and respective Groups for the defined participant.
Thanks to Fluff, the timeslot query is already working (see this thread).

Could anyone please point me in the right direction on how to query the groups --> Dynamically calculate Column "U"?

Thanks in advance.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
How about
Excel Formula:
=LET(m,MMULT(--(ISNUMBER(SEARCH(J2,Table3[[Group 1]:[Group 6]]))),SEQUENCE(COLUMNS(Table3[[#Headers],[Group 1]:[Group 6]]))),CHOOSE({1,2},FILTER(Table3[TIMESLOT],m>0),INDEX(Table3[[#Headers],[Group 1]:[Group 6]],FILTER(m,m>0))))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,527
Messages
6,120,054
Members
448,940
Latest member
mdusw

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