1
votes

I am currently doing keyword research with 24,000 keywords in it. Now, I have already grouped the keywords by column in "Sheet A" where the 1st row is the cluster name.

Screenshot of Cluster Columns

Now, what I want to do is to find a fast and automated way for searching the columns in "Sheet A" and pull the header row where the cluster name is for each individual keyword listed in "Sheet B".

Screenshot of the keyword lists

I had this

query function

but it returns a #value error that says:

"Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " "m "" at line 1, column 26. Was expecting one of: "group" ... "pivot" ... "order" ... "skipping" ... "limit" ... "offset" ... "label" ... "format" ... "options" ... "and" ... "or" ..."

Also, it seems that it'll take me ages to load all query fxns for 24,000 data cells so it'll be inefficient. Any help would be much appreciated. Thanks in advance!

1
share a copy of your sheetplayer0
@player0 Hi, here's a sample copy docs.google.com/spreadsheets/d/…Clarry Herrera

1 Answers

1
votes

try in D1:

={"Cluster"; ARRAYFORMULA(IFNA(VLOOKUP(C2:C, 
 SPLIT(QUERY(FLATTEN(IF(INDIRECT("Clusters!C2:"&ROWS(Clusters!A:A))="",,
 INDIRECT("Clusters!C2:"&ROWS(Clusters!A:A))&"♠"&Clusters!C1:1)), 
 "where Col1 is not null"), "♠"), 2, 0)))}

enter image description here