excelexcel-formulaexcel-365

Cross sorting arrays


I have a table that list the tickets with a list of tests attached:

enter image description here

And I want to get the list of test with the tickets related to this test:

enter image description here

I'm using Excel Office 365 and the dynamics arrays, so for this example, I will have for the first entire array A1#.

Then, now I have the list of the tests by using this formula :

[in french]

=EXCLURE(TRIER(UNIQUE(DANSCOL(EXCLURE(tickets;;1)));;1);-1) 

[in english]

=EXCLUDE(SORT(UNIQUE(BYCOL(EXCLUDE(A1#,,1))), 1), -1)

But I'm stuck on the generation of the second part to get the lists of the tickets by tests

I have tried the BYROW formula or the XLOOKUP, without success.

Is it possible to manage it only by formula?


Solution

  • Transform Data: Switch Values and Row Labels

    =LET(data,A1:D5,
        sl,TAKE(data,,1),
        sv,DROP(data,,1),
        dl,UNIQUE(TOCOL(IFS(sv<>"",sv),2)),
        dv,IFNA(DROP(REDUCE("",dl,LAMBDA(rr,r,
            VSTACK(rr,TOROW(IFS(ISNUMBER(SEARCH(r,sv)),sl),2)))),1),""),
        HSTACK(dl,dv))
    

    enter image description here

    Edit