I'm wracking my brain trying to write a formula to count the number of values in a range which meet a certain set of conditions.
The data are a list of numbers ranging from 0 - 1. I need to count the number of contiguous data points in each range which exceed a threshold value. This range must also include the maximum value in the data set (which is always the values of "1.0")
Ive attached an example sheet showing the dataset (I have many more datasets to do this on! hence I'm trying to write a formula to automate it). in the example sheet Ive highlighted the cells which contain values which exceed the threshold of "0.5". Looking at dataset number 17 highlights the problem as there are a total of 10 values which exceed the threshold of 0.5, however, the correct result to return is "5" as there are only a maximum of 5 contiguous values which exceed the threshold and for which the range includes the value of 1.0.
Any and all comments/suggestions are gratefully received
Bookmarks