Search code examples
google-sheetssyntaxgoogle-sheets-formulagoogle-sheets-querygoogle-query-language

Query Col1 > today()


When I use the format that I left below, returns in error, I know that something is missing adjusting in relation to WHERE AND... But I could not fit to supply the error.

I would like some help knowing what I missed.

"select Col1,Col2,Col3 where Col1 is not null Order by Col1, Col2 AND Col1 > date'"&TEXT(today()-1,"yyyy/mm/dd")&"'"

The date and time for Col1 and Col2 are like this:

enter image description here

With this formula, I hope I can filter the imported data only for those that have the date of the current day or tomorrow and that today's games are higher than the current time.

Link to spreadsheet: https://docs.google.com/spreadsheets/d/15T4UPVtEHv43DLomKcTmdaPuGWMsBUoO7bLvlOhab4k/edit?usp=sharing

Formula set in Página1 G2


Solution

  • it may look like you can combine parameters as you like but there is a specific order that needs to be followed:

    0

    respectively joining operator like and needs to be proceeded by parent parameter where:

    enter image description here