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

Google Sheets - How to use results from INDEX formula in a new QUERY function

$
0
0

In Google Sheets I have an =INDEX function which is producing a number of references for data in another worksheet.

I need to use those references in a QUERY function.

I've not found a good way and keep getting 'formula parse' or 'array' errors. If you have any assistance you might be able to offer on how to achieve this I'd be really appreciate of some help.

The INDEX Function I'm using is:

=INDEX(FLATTEN(FLATTEN( FILTER(O3:O, O3:O<>"")&""&TRANSPOSE( FILTER(P3:P, P3:P<>"")))&""&TRANSPOSE( FILTER(Q3:Q, Q3:Q<>""))))

This produces results like this:enter image description hereAll good so far...

Next, I need to somehow use those results as part of a QUERY function. I've got the query function working with the results typed in (see below):

this works fine when tested manually

But I can't figure out how to dynamically populate the QUERY function using the initial INDEX results.What's the best way to approach this?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



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