C
C
ChipsanovSA2020-07-04 19:26:12
Google Sheets
ChipsanovSA, 2020-07-04 19:26:12

How to use the QUERY function to display strings by condition?

How to use the QUERY function to display rows where the date matches the condition today and earlier?
You need to set up a table where rows are automatically pulled from the database according to the condition <= today. So far, you have to manually enter the date in the formula every day.

=QUERY('Лента'!A:F;"select D,F where A='Задача'and C<=date'2020-07-04')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Boev, 2020-07-04
@ChipsanovSA

Substitute this for the date:

=ГОД(СЕГОДНЯ())&"-"&ДЕНЬ(СЕГОДНЯ())&"-"&МЕСЯЦ(СЕГОДНЯ())

Or this:
=ТЕКСТ(СЕГОДНЯ();".ГГГГ-ДД-ММ")
PS: I'm not 100% sure that first the day and then the month, it is quite possible that the format
YYYY-MM-DD

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question