Forum Discussion
Hogstad_Raadgivning
Oct 16, 2024Iron Contributor
Filter columns by criteria, dynamic spilled/list.
Hi, For each row in a dynamic range, I want to filter/select the headers if it is a "X" in the line column. I made it work with Filter. But I dont get that to be dymamic for each row in the l...
- Oct 16, 2024
I would use SWITCH to obtain the headings and then go BYROW to string up the text (if more than 1 heading for each row).
=LET( M, SWITCH(grid, "X", header, ""), BYROW(M, LAMBDA(each_row, TEXTJOIN(", ", , each_row))) )
Patrick2788
Oct 16, 2024Silver Contributor
I would use SWITCH to obtain the headings and then go BYROW to string up the text (if more than 1 heading for each row).
=LET(
M, SWITCH(grid, "X", header, ""),
BYROW(M, LAMBDA(each_row, TEXTJOIN(", ", , each_row)))
)
- Hogstad_RaadgivningOct 17, 2024Iron ContributorPerfect, thank you.
- Patrick2788Oct 17, 2024Silver ContributorGlad to help. You're welcome!