I'm trying to run the following Query in google sheets, but am receiving a parse error when I try to select the column BY. Without this column, it runs as expected.
Query below:
=QUERY('Applications received'!B:DL,"Select B,CT,CU,CV,CW,CX,BY where B is not null order by CX")
Any help is much appreciated!
BY column needs to be escaped with `:
=QUERY('Applications received'!B:DL,
"select B,CT,CU,CV,CW,CX,`BY`
where B is not null
order by CX")

https://developers.google.com/chart/interactive/docs/querylanguage#reserved-words
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With