Forum Discussion
tcaseria
Aug 04, 2022Copper Contributor
Lookup from Multiple Columns
I am trying to write a formula that would return the bold cells in this sheet. It would be like a vlookup or index/match, but with how the data is structured, there has to be multiple columns for the...
tcaseria
Aug 04, 2022Copper Contributor
Do you know if there's a way to make it so that if I want to add a reference column in table 1, I would be able to without having to add more conditions to the formulas in table 2? Eventually, I will have 50 or 100 reference columns formatted similarly to columns A:C and I don't want to have to formula with 100 conditions in it.
Harun24HR
Aug 05, 2022Bronze Contributor
You can try FILTER() with MMULT() where you do not need to enter criteria for each reference cell. See the attached file.
=FILTER($D$3:$H$4,MMULT(--($A$3:$C$4=A12),SEQUENCE(COLUMNS($A$3:$C$4),,,0)))
If you have BYROW() function available to your excel then below would be easier.
=FILTER($D$3:$H$4,BYROW(--($A$3:$C$4=A12),LAMBDA(x,MAX(x))))