Query Col1 > today()

亡梦爱人 提交于 2020-01-24 21:47:30

问题


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:

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


回答1:


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

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




回答2:


Try:

"select Col1, Col2, Col3 where Col1 >='"&TEXT(TODAY()-1,"yyyy-mm-dd")&"' and Col1 is not null Order by Col1, Col2"

This returns 78 records



来源:https://stackoverflow.com/questions/59167940/query-col1-today

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!