I have a column from which I pull a list of unique values, then I want to pull all their keys and merge them using Join. But the Filter function the criteria to be compared against a single value, while I want the criteria to look for a whole row.
Right now it's:
D1=UNIQUE(A1:A)E2=JOIN($E$1, FILTER(B:B, A:A=D2))E3=JOIN($E$1, FILTER(B:B, A:A=D3))E4=JOIN($E$1, FILTER(B:B, A:A=D4))But the data is dynamic so I can't keep doing D5, D6, etc. and also I don't want to just drag down over unused cells because it slows down the file.
So what I'm looking for is something like E2=ARRAYFORMULA(JOIN($E$1, FILTER(B:B, A:A=D2:D))) plus only for non empty D cells, like E2=ARRAYFORMULA(JOIN($E$1, FILTER(B:B, A:A=FILTER(D2:D, D2:D<>""))))So the result will be without having to put formulas in E3, E4, etc.:
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Item | Key | Item | , | |
| 2 | foo | dfgsd | foo | dfgsd,6456hfghd | |
| 3 | bar | gdfghsh | bar | gdfghsh,fuibdgdb | |
| 4 | foo | 6456hfghd | something | dsfkgjlcb | |
| 5 | something | dsfkgjlcb | |||
| 6 | bar | fuibdgdb |
Is it possible? See similar Excel-specific question.