I want to find the column number of "x".
Column B is a spill formula. To the right of column H, I want another spill formula to find which column the "x" is in for each row. I can do that in a non-spill way, but I want the formula to be dynamic so that it knows how many rows are involved based on what column B produces.
This is the formula I'm using:
While the results do spill, they only come up as "1" as a result, not the actual column number.
What am I missing please?
A | B | C | D | E | F | H | |
1 | Plan | Department | 1 | 2 | 3 | 4 | 6 |
2 | Alpha | Red | x | | |||
3 | Beta | Orange | | x | |||
4 | Gamma | Blue | x | | |||
5 | Omega | Green | x | ||||
6 | Theta | Yellow | x | ||||
7 | Pi | Pink | x |
Column B is a spill formula. To the right of column H, I want another spill formula to find which column the "x" is in for each row. I can do that in a non-spill way, but I want the formula to be dynamic so that it knows how many rows are involved based on what column B produces.
This is the formula I'm using:
Excel Formula:
=LET(r,ROWS(B2#),s,SEQUENCE(r),IF(s<=r,MATCH("x",C2:H2,0)))
While the results do spill, they only come up as "1" as a result, not the actual column number.
What am I missing please?