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 function in google sheets empty output

I’m trying to use the following query function with mixed column data but it returns with "Query completed with an empty output."

= ARRAYFORMULA(QUERY(TO_TEXT(Consumables!$C:$N),"Select Col4, Col1 Where Col12="&C1&" order by Col1 ",))

Although, if I removed the "&C1&" and replaced it with the number I want it works which is what I don’t really want to do.

This is a link for the sheet if anyone wants to help
https://docs.google.com/spreadsheets/d/1h5GHlf9Pzw05WGseYdJ5CbDpRfCmlKQRpowFqrliFcY/edit?usp=sharing

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

Thanks in advance

>Solution :

Because you have transformed data into text, you need to do Col12='"&C1&"'

= ARRAYFORMULA(QUERY(TO_TEXT(Consumables!$C:$N),"Select Col4, Col1 Where Col12='"&C1&"' order by Col1 ",))
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