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

Using QUERY on reference cells

I’m trying to use the QUERY function in Google Sheets like this:

=QUERY(A2:I62854;"select I where G='"&C2&"' AND H='"&E2&"' ")

This query doesn’t work. I tried to manually input numbers like that:

=QUERY(A2:I62852;"select I where G=127 AND H=2123")

and it works. Am i doing something wrong ?

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

>Solution :

Remove the single quotes'(they are being considered as text strings) :

=QUERY(A2:I62854;"select I where G="&C2&" AND H="&E2&" ")
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