Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 992

How to dynamically stack non blank cells from a spilled formula in multiple rows?

$
0
0

The idea is to turn a table filled with 1 and blank cell where the useful info is in the headers into a table with useful info and "" cells and then into a compact table with only the useful info.

I have this :Raw 1 and blanks cells table

That, through this formula =IF(Table1=1;Table1[#Headers];""), I turn into this :

Transformed Useful info and "" cells table

And I lack the mean to dynamically turn it into this :Final only useful info table

For now I have work around with BYROW and TEXTJOIN but it's not ideal since everything is concatenated into on cell by row :Workaround table

=BYROW(Table1;LAMBDA(row;TEXTJOIN(" ; ";TRUE;IF(row;Table1[#Headers];""))))

The good solution would be to unpivot through Power Query and get a real data table but this is not a solution here.

This question talks about this problem with a column but I would like a general solution freed for the FILTER function limitation.

Thank you


Viewing all articles
Browse latest Browse all 992

Trending Articles