Hi,
I want to calculate the count of n consecutive records as 1 .
I have a data set which have 2 columns,Timestamp & value. Data is coming every second.Sometime there are 2 values per second.
If i get different values which are not in range continuously for next t hours or may be for full day then don't count every instance instead of that count it as 1.
E.g. Operating range : max=170 & min=120
7/8/2014 12:01:01 AM 169.071685791015 - In Range
7/8/2014 12:01:01 AM 169.114990234375 - In Range
7/8/2014 12:01:02 AM 178.788208007812 - Out Of Range
7/8/2014 12:01:03 AM 175.076995849609 - Out Of Range
7/8/2014 12:01:04 AM 169.071695791015 - In Range
7/8/2014 12:01:04 AM 179.071685791015 - Out Of Range
7/8/2014 12:01:05 AM 129.071685791015 - In Range
7/8/2014 12:01:06 AM 119.071685791015 - Out Of Range
7/8/2014 12:01:07 AM 109.071685791015 - Out Of Range
7/8/2014 12:01:07 AM 107.071685791015 - Out Of Range
7/8/2014 12:01:08 AM 126.071685791015 - In range
7/8/2014 12:01:09 AM 105.071685791015 - Out Of Range
Total out of range = 7 but i want to consider consecutive out of range values count as 1 till it comes in range. I want to execute this in excel using some formula which will give me count as 4.
Please reply ASAP.
.
I want to calculate the count of n consecutive records as 1 .
I have a data set which have 2 columns,Timestamp & value. Data is coming every second.Sometime there are 2 values per second.
If i get different values which are not in range continuously for next t hours or may be for full day then don't count every instance instead of that count it as 1.
E.g. Operating range : max=170 & min=120
7/8/2014 12:01:01 AM 169.071685791015 - In Range
7/8/2014 12:01:01 AM 169.114990234375 - In Range
7/8/2014 12:01:02 AM 178.788208007812 - Out Of Range
7/8/2014 12:01:03 AM 175.076995849609 - Out Of Range
7/8/2014 12:01:04 AM 169.071695791015 - In Range
7/8/2014 12:01:04 AM 179.071685791015 - Out Of Range
7/8/2014 12:01:05 AM 129.071685791015 - In Range
7/8/2014 12:01:06 AM 119.071685791015 - Out Of Range
7/8/2014 12:01:07 AM 109.071685791015 - Out Of Range
7/8/2014 12:01:07 AM 107.071685791015 - Out Of Range
7/8/2014 12:01:08 AM 126.071685791015 - In range
7/8/2014 12:01:09 AM 105.071685791015 - Out Of Range
Total out of range = 7 but i want to consider consecutive out of range values count as 1 till it comes in range. I want to execute this in excel using some formula which will give me count as 4.
Please reply ASAP.
.