Reputation: 127
I'm trying to apply FILTER to a set of durations in a Google Sheets table. While searching for a solution online, I came across the TEXT function. But I can't figure out how to use it correctly.
Can you help me out?
For example I want to count all cells which have a duration below 40 minutes:
I also would like to know how to do this with durations between let's say 30 and 50 minutes.
Upvotes: 1
Views: 586
Reputation: 4630
Bewteen 30 and 50 mins using timevalue
:
=filter(A:A,TIMEVALUE(A:A)>1/24/60*30,TIMEVALUE(A:A)<1/24/60*50)
Upvotes: 1
Reputation: 11968
If in range A1:B5
you have real time value, use COUNTIF
:
=COUNTIF(A1:B5;"<" & 1/24/60*40)
if there is text, then add TIMEVALUE
and ARRAYFORMULA
:
=ArrayFormula(COUNTIF(TIMEVALUE(A1:B5);"<" & 1/24/60*40))
Upvotes: 2