Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9764

Query a column based on current date

$
0
0

I'm trying to query a column based on the current day.

Examples:

If today is 1st day of the month I need to
=QUERY(table,"SELECT A WHERE B CONTAINS 'this text'")

If today is 12th day of the month I need to
=QUERY(table,"SELECT A WHERE M CONTAINS 'this text'")

If today is 30th day of the month I need to
=QUERY(table,"SELECT A WHERE AE CONTAINS 'this text'")

How can I do this?I was thinking about adding +1 to the current day, converting it to its corresponding letter and using it in the query.But I have no idea how to actually do that.


Viewing all articles
Browse latest Browse all 9764

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>