need a formula to count number of times a value is between 2 ranges. But if the range numbers are equal then do not count
data in sheet data25 looks like this
I am creating a graph of the number of times that speed of car was between 2 values.
For example:
My graph data would look like this
Speed count
35-45 ####
In this case the count should be 4. because the either the first detected speed or the last detected speed of between 35-45 occurred 4 times. 3 4. I am using the following formula..."=COUNTIFS(data25!B:B,">34",data25!B:B,"<45")+COUNTIFS(data25!C:C,">34",data25!C:C,"<45")". However, this formula produces a count of 5 because it is counting that someone was doing the same speed as recorded in the first detected and last detected.
How can I modify the formula to check if the 2 speeds are the same then only count once and not twice.
data in sheet data25 looks like this
Date/Time (col A) | First Detected Speed (Col B) | Last Detected Speed (Col C) |
4/1/2021 0:40 | 35 | 35 |
4/1/2021 0:41 | 40 | 10 |
4/1/2021 0:42 | 44 | 10 |
4/1/2021 0:43 | 10 | 44 |
I am creating a graph of the number of times that speed of car was between 2 values.
For example:
My graph data would look like this
Speed count
35-45 ####
In this case the count should be 4. because the either the first detected speed or the last detected speed of between 35-45 occurred 4 times. 3 4. I am using the following formula..."=COUNTIFS(data25!B:B,">34",data25!B:B,"<45")+COUNTIFS(data25!C:C,">34",data25!C:C,"<45")". However, this formula produces a count of 5 because it is counting that someone was doing the same speed as recorded in the first detected and last detected.
How can I modify the formula to check if the 2 speeds are the same then only count once and not twice.