Book1 | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | ID | Header1 | Header2 | Header3 | Header4 | Result | ||
2 | 1 | Dog | Dog | Cat | Cat | Dog (2),Cat (2) | ||
3 | 2 | Dog | Cat | Dog (1),Cat (1) | ||||
4 | 3 | Dog | Ferret | Ferret | Dog | Dog (2),Ferret (2) | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F2:F4 | F2 | =LET(uni,UNIQUE(FILTER(B2:E2,B2:E2<>""),1),TEXTJOIN({" ",","},1,TOROW(VSTACK(uni,"("&COUNTIFS(B2:E2,uni)&")"),1,1))) |
Thank you very much for the feedbackHere's one suggestion.
Book1
A B C D E F 1 ID Header1 Header2 Header3 Header4 Result 2 1 Dog Dog Cat Cat Dog (2),Cat (2) 3 2 Dog Cat Dog (1),Cat (1) 4 3 Dog Ferret Ferret Dog Dog (2),Ferret (2) Sheet1
Cell Formulas Range Formula F2:F4 F2 =LET(uni,UNIQUE(FILTER(B2:E2,B2:E2<>""),1),TEXTJOIN({" ",","},1,TOROW(VSTACK(uni,"("&COUNTIFS(B2:E2,uni)&")"),1,1)))
Ahh ok.TOROW and VSTACK are only available in the M365 Office Inside Beta Channel.