Mady
Mady

Reputation: 1

How do I calculate number of days with at least 6 consecutive days when the temperature >90th percentile in excel?

I have daily temperature data of a place. I need to calculate the temperature indices. need help in calculating the number of days with at least 6 consecutive days when the temperature is >90th percentile. help me with composing the formula in excel. thanks in advance!

Upvotes: -1

Views: 52

Answers (1)

user22566114
user22566114

Reputation: 391

Certainly too late for an answer however this works in Excel for the web and Office 365.

 =SUM(N(SCAN(0,A1:Z1,LAMBDA(ini,arr,IF(arr>90,ini+1,0)))=6))

temperature

Upvotes: 0

Related Questions