I have a data in Sheet1 with Col is A, B, C which C is date format YYYY-MM-DD HH:MM:SS, I need to query the data in Sheet1 where C is today date. My formula is
=query('Sheet1!A1:C',"Select * where C = Date'"&text(today(),"YYYY-MM-DD")&"')
But result return is empty even C is today date.
When I change the formula to this format then it works,
=query('Sheet1!A1:C',"Select * where C < Date'"&text(today()-1,"YYYY-MM-DD")&"'and C > Date'"&text(today()+1,"YYYY-MM-DD")&"')
I wonder what was wrong with my first formula when I use "=" in the query.
Thanks
A1:C
range have? Moreover, can you share a copy of your sheet as well? @TuPHAN – ale13