Problem with Query formula does not work in Google table

I need to complete the query which should select all colums from database where date within period which is choisen from break down list.
I use formula: =Query(A4:E29;“SELECT * WHERE A>=date’”&TEXT(H2;“yyyy-mm-dd”&“‘) AND WHERE A<=date’”&TEXT(I2;“yyyy-mm-dd”&“'”)“)”))
But I am receiving error!
Can somebody help me with that?

Welcome to the Make community!

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Output bundles

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module and select “Download output bundles”.


Save the bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading it here will look like this:

bundle.txt (12.3 KB)


If you are unable to upload files on this forum, alternatively you can paste the formatted output bundle in this manner:

  • Either add three backticks ``` before and after the code, like this:

    input/output bundle content goes here

  • Or use the format code button in the editor:

Providing the output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!


Hey @Alla2014

=QUERY(A:E, "SELECT * WHERE A >= date ’ " & TEXT(H2, “yyyy-mm-dd”) & " ’ AND A <= date ’ " & TEXT(I2, “yyyy-mm-dd”) & " ’ ")

I think you should try this formula , also make sure to replace the data range “A:E” with your actual range . And also ensure that the date format in the H2 and I2 matches the pattern used in the Text function “yyyy-mm-dd”.