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

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

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?
A1:A5) are distinct.B1:D5) are distinct per row.=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))

Edit
SEARCH might encounter false positives) and reduces TOROW(IFS(ISNUMBER(SEARCH(r,sv)),sl),2) to TOROW(IFS(sv=r,sl),2) in the formula above.If it's not a large array, this mat suit your needs:
=LET(a,DROP(A1#,,1),L,LAMBDA(x,TOCOL(IFS(a>"",x),2)),TEXTSPLIT(CONCAT(BYROW(GROUPBY(L(a)&", ",L(TAKE(A1#,,1)),ARRAYTOTEXT,,0),CONCAT)&"|"),", ","|",1,,""))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With