Jan 24 2023 06:25 AM - edited Jan 24 2023 06:26 AM
Subject probably makes no sense so let me explain with an example:
A.1 | A.2 | A.3 | A.4 | A.5 | A.6 | A.7 | A.8 | DESIRED RESULT | |
#001 | 1 | 3 | 4 | A.1, A.4, A.5 | |||||
#002 | 1 | A.8 | |||||||
#003 | 1 | 1 | 3 | 2 | A.1, A.2, A.3, A.6 | ||||
#004 | 2 | A.4 | |||||||
#005 | 1 | A.7 | |||||||
#006 | 3 | 3 | 3 | A.2, A.5, A.8 | |||||
#007 | 2 | A.3 | |||||||
#008 | 2 | 1 | 2 | A.2, A.4, A.8 |
The desired result illustrated in the table will probably be in another tab of the worksheet. Oh, the commas as seperators are optional
What form of lookup formula do I need to do to get the header value and how do I ensure that only cells with a value are considered?
Thanks in advance
Jan 24 2023 09:37 AM
Solution=BYROW(B2:I9,LAMBDA(row,TEXTJOIN(",",,FILTER(B1:I1,NOT(ISBLANK(row))))))
You can try this formula.
Jan 25 2023 12:59 AM
@Quadruple_Pawn Vielen Dank!!!
That works perfectly - I won't pretend to follow the logic or understand what a LAMBDA function is but the formula does exactly what I asked. I've even managed to transpose it so I get the IDs per column as follows:
=BYCOL(B2:I10,LAMBDA(column,TEXTJOIN(CHAR(10),TRUE,FILTER(A2:A10,NOT(ISBLANK(column))))))
Your help is very much appreciated!
Jan 25 2023 01:53 AM
Jan 25 2023 06:28 AM
=TRANSPOSE(BYCOL(Assessment!L7:CZ130,LAMBDA(column,TEXTJOIN(",",TRUE,FILTER(Assessment!A7:A130,NOT(ISBLANK(column)))))))
I am unsure if i correctly understand how your data is actually laid out. I've tried to replicate the layout of the data and this formula could return the expected result.
Sheet "SOA":
Jan 31 2023 01:57 AM