Forum Discussion

NasTMashups's avatar
NasTMashups
Copper Contributor
Oct 07, 2022
Solved

Unique spilling behavior

Hello there. i have a document where i have many columns with only 3 i care about: groups, students, and scores. there are 9 groups with more that could be added, and each one has around 20 unique st...
  • Lorenzo's avatar
    Oct 07, 2022

    Hi NasTMashups 

     

    Assuming I understood...

     

    in F2:

    =LET(
        uGroup, UNIQUE(B3:B13),
        cols,   SEQUENCE(,COUNTA(uGroup)*2),
        IF(ISODD(cols), INDEX(uGroup,ROUNDUP(cols/2,0)), "")
    )