K
K
kaspeer9992021-05-27 15:33:25
excel
kaspeer999, 2021-05-27 15:33:25

How to count the number of values ​​and their sum?

There is a table in Google Sheets, replenished from the form. It is necessary to calculate the number of values: for today, for the current month, for each month, for the year. And so are the amounts.
60af91803dd68696564004.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Boev, 2021-05-28
@kaspeer999

For today (sum by D):

=СУММ(FILTER(D:D;A:A>=СЕГОДНЯ();A:A<(СЕГОДНЯ()+1)))

For today (number):
=счёт(FILTER(A:A;A:A>=СЕГОДНЯ();A:A<(СЕГОДНЯ()+1)))

The rest is by analogy. The only thing is that if you need for a calendar month, then the date must be formed using the DATE (year; month; day) function
Something like this:
=СУММ(
FILTER(D:D;A:A>=ДАТА(ГОД(СЕГОДНЯ());МЕСЯЦ(СЕГОДНЯ());1);A:A<ДАТА(ГОД(СЕГОДНЯ());1+МЕСЯЦ(СЕГОДНЯ());1)
)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question