JonRowland
Active Member
- Joined
- May 9, 2003
- Messages
- 417
- Office Version
- 365
- Platform
- Windows
Hi,
I'm trying to work out the best way to solve a problem. I have a worksheet containing thousands of timed events, sorted in date/time order. Within this date there will be some batch events which occured with a short period. What I would like is to somehow hightlight or similar periods where there are a series of 5 or more events all within say a period 10 seconds or less of each other.
For examle the data (cols A=Date , B = Time) below I would want those in red highlight (probably with a reference in the LastCol +1)
01/01/2022 10:44:01
01/01/2022 10:44:03
01/01/2022 10:44:05
01/01/2022 10:44:07
01/01/2022 10:44:10
01/01/2022 10:45:00
01/01/2022 10:45:02
01/01/2022 10:54:11
01/01/2022 10:54:18
01/01/2022 10:54:23
01/01/2022 10:54:25
01/01/2022 10:54:29
01/01/2022 11:00:00
I'm thinking VBA for quickness but struggling to think how I'd do this. I think Do...While whislt the difference is <10 seconds between the times - but not sure. Any suggestions to get me start would be great.
I'm trying to work out the best way to solve a problem. I have a worksheet containing thousands of timed events, sorted in date/time order. Within this date there will be some batch events which occured with a short period. What I would like is to somehow hightlight or similar periods where there are a series of 5 or more events all within say a period 10 seconds or less of each other.
For examle the data (cols A=Date , B = Time) below I would want those in red highlight (probably with a reference in the LastCol +1)
01/01/2022 10:44:01
01/01/2022 10:44:03
01/01/2022 10:44:05
01/01/2022 10:44:07
01/01/2022 10:44:10
01/01/2022 10:45:00
01/01/2022 10:45:02
01/01/2022 10:54:11
01/01/2022 10:54:18
01/01/2022 10:54:23
01/01/2022 10:54:25
01/01/2022 10:54:29
01/01/2022 11:00:00
I'm thinking VBA for quickness but struggling to think how I'd do this. I think Do...While whislt the difference is <10 seconds between the times - but not sure. Any suggestions to get me start would be great.