Hi, I was playing a bit around with this RBYROW function here in post #15:
Is it possible to use FILTER with BYROW to get a spill? If not, how else can this be done?
Unfortunately, I couldn't make it work with those relatively simple sample data, i.e. generate the same result as the row-by-row filter function in one go.
The CALC#! error says 'empty array'.
And I also noted another potential issue, everything else stay the same: if row 1 (which contains no data) is deleted, all of a sudden a circ error pops up that is not detected otherwise, i.e. if the data starts only in row 2 as in this example.
What am I doing wrong with the way I have tried to use the RBYROW function for this particular problem?
Thanks
Is it possible to use FILTER with BYROW to get a spill? If not, how else can this be done?
Unfortunately, I couldn't make it work with those relatively simple sample data, i.e. generate the same result as the row-by-row filter function in one go.
The CALC#! error says 'empty array'.
And I also noted another potential issue, everything else stay the same: if row 1 (which contains no data) is deleted, all of a sudden a circ error pops up that is not detected otherwise, i.e. if the data starts only in row 2 as in this example.
What am I doing wrong with the way I have tried to use the RBYROW function for this particular problem?
Thanks
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2:C4 | C2 | =UNIQUE(A2:A8) |
I2 | I2 | =RBYROW(UNIQUE(A2:A8),LAMBDA(r,TOROW(FILTER(B2:B8,A2:A8=r)))) |
E2:G2 | E2 | =TOROW(FILTER(B2:B8,A2:A8=C2)) |
E3:F3 | E3 | =TOROW(FILTER(B2:B8,A2:A8=C3)) |
E4:F4 | E4 | =TOROW(FILTER(B2:B8,A2:A8=C4)) |
Dynamic array formulas. |
Lambda Functions | ||
---|---|---|
Name | Formula | |
RBYROW | =LAMBDA(ar,fn,LET(a,IF(ar="","",ar),c,--(COLUMNS(a)=1),r,REDUCE(0,SEQUENCE(ROWS(a)),LAMBDA(v,i,VSTACK(v,fn(INDEX(a,i,c))))),DROP(IFNA(r,""),1))) |