Let’s say in column A I have a thousand rows of dates/times. Then in column B I have corresponding number data. I’m trying to understand how many times the data in column B is lower than a certain value (let’s say 5) for a given duration (let’s say 2 hours). In other words, look at the data in column B, and when the value is below 5, start duration counter from column A. Continue down column B until value jumps above 5. If duration is greater than 2 hours, count as 1 event. Sum all events.