Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Can an Google Sheet Filter function base its include on a whole row?

$
0
0

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.:

ABCDE
1ItemKeyItem,
2foodfgsdfoodfgsd,6456hfghd
3bargdfghshbargdfghsh,fuibdgdb
4foo6456hfghdsomethingdsfkgjlcb
5somethingdsfkgjlcb
6barfuibdgdb

Is it possible? See similar Excel-specific question.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>