Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Query where Col = range from another sheet

How can I query importrange where Col values = any of the range specified in another sheet?

For example:
=QUERY(IMPORTRANGE("/18UF6ZR19iWulTMHT3lg6mv0NLrghItzW6bRT_p7bzsA/","Data!A2:E"),"select Col4,Col3,Col1,Col2 where Col4 = ‘"&Helper!A2:A&"’",0)

This workbook has 3 sheets in it:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

  1. Data! = Data source
  2. Helper! = Range required for the query to search for
  3. Testing! = Is where I would like the data to return (Testing!A2 has the formula I have tried but it is not working as expected)

https://docs.google.com/spreadsheets/d/18UF6ZR19iWulTMHT3lg6mv0NLrghItzW6bRT_p7bzsA/edit?usp=sharing

I would like it to return data for the range Helper!A2:A but it is currently only returning the data from Helper!A2 I’m not sure what is going wrong as no errors return.

>Solution :

=QUERY(IMPORTRANGE("/18UF6ZR19iWulTMHT3lg6mv0NLrghItzW6bRT_p7bzsA/","Data!A2:E"),"select Col4,Col3,Col1,Col2 where Col4 matches ‘"&TEXTJOIN("|",TRUE,Helper!A2:A)&"’",0)

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading