Forum Discussion
Lucdejong
Jan 11, 2021Copper Contributor
Connecting match to a dropdown list
Hi, I have a question This is my work sheet. What I would like is this: when Quads is selected in the dropdownlist (cel B2), i want all the excercise below the name Quads (D3) placed in the ...
- Jan 12, 2021
It will be better if you indicate on which version of Excel you are - are you with dynamic arrays, LET() function?
Couple of more variants
=INDEX($D$4:$F$36,SEQUENCE(COUNTA(INDEX($D$4:$F$36,0,MATCH($B$1,$D$3:$F$3,0)))),MATCH($B$1,$D$3:$F$3,0)) or =INDEX($D$4:$F$36,ROW(INDIRECT("A1:A"&COUNTA(INDEX($D$4:$F$36,0,MATCH($B$1,$D$3:$F$3,0))))),MATCH($B$1,$D$3:$F$3,0))
Riny_van_Eekelen
Jan 11, 2021Platinum Contributor
Lucdejong See attached file. It has three possible solutions. It depends on your Excel version and/or your personal preference.
- SergeiBaklanJan 11, 2021Diamond Contributor
Another DA variant
=LET(group, $B$1, range, $D$4:$F$11, headers, $D$3:$F$3, col, XLOOKUP(group,headers,range), colsize, COUNTA(col), INDEX(col,SEQUENCE(colsize)))