'"No Column" error in google sheets when using query function
I am trying to query in order to ultimately, select between a date range to show only dates between YYYY-MM-DD and YYYY-MM-DD Current code i am trying to use:
=QUERY({"Master!A:J"}, "select * where Col1 >= date '2022-01-01' AND Col1 <= date '2022-01-31'")
I have also tried:
=QUERY({"Master!A:J"}, "select * where D >= date '2022-01-01' AND D <= date '2022-01-31'")
the data from the master sheet is being received by an apps script if that makes a difference?
Solution 1:[1]
try:
=QUERY({Master!A:J},
"where Col1 >= date '2022-01-01'
and Col1 <= date '2022-01-31'")
or:
=QUERY({Master!A:J},
"where month(Col1)+1 = 1
and year(Col1) = 2022")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | player0 |
