Time between events

simon354

New Member
Joined
Nov 1, 2022
Messages
3
Platform
  1. Windows
Hello
I'm looking for a good idea as I am not sure where to start on this project.
I have a list of events, every time an alarm is raised, and every time the state goes back to normal. Sometimes the program makes two alarm or two normal events, but I am only looking at the first alarm and the first "back to normal" each time. (marked with green just to show)
I need to find the total time, the program has been in "alarm" and sum that up for the month (or between to dates)
I guess I have to start by making the timestamp column (A) a time, and not just text, but what then? How do I find an Alarm and look for the next Normal upwards in the sheet? I hoped I could look for the next "New state" in column G, but those seem random.
Thanks in advance for your input
 

Attachments

  • Udklip.PNG
    Udklip.PNG
    40.6 KB · Views: 13

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Installed Xl2bb
V231600io.xlsm
ABCDEFGHIJKLM
1TimestampObject NameObject DescriptionMessageActive TimeCondition NameNew StateEvent TypeProcess SectionPriority LevelAlarm StateSeverityClass
22022-10-24 19:08:28.480V231600IOMULTI SKRUBBERNormal2022-10-24 18:55:07.280Value5Condition52RTN7501
32022-10-24 18:59:47.633V231600IOMULTI SKRUBBERAlarm2022-10-24 18:55:07.280Value7Condition52ACT7501
42022-10-24 18:55:07.280V231600IOMULTI SKRUBBERAlarm2022-10-24 18:55:07.280Value3Condition52ACT7501
52022-10-24 11:07:10.843V231600IOMULTI SKRUBBERNormal2022-10-24 11:06:37.270Value5Condition52RTN7501
62022-10-24 11:07:00.673V231600IOMULTI SKRUBBERAlarm2022-10-24 11:06:37.270Value7Condition52ACT7501
72022-10-24 11:06:37.270V231600IOMULTI SKRUBBERAlarm2022-10-24 11:06:37.270Value3Condition52ACT7501
82022-10-24 11:06:13.827V231600IOMULTI SKRUBBERNormal2022-10-24 11:05:33.810Value5Condition52RTN7501
92022-10-24 11:06:03.130V231600IOMULTI SKRUBBERAlarm2022-10-24 11:05:33.810Value7Condition52ACT7501
102022-10-24 11:05:33.810V231600IOMULTI SKRUBBERAlarm2022-10-24 11:05:33.810Value3Condition52ACT7501
112022-10-24 11:05:29.360V231600IOMULTI SKRUBBERNormal2022-10-24 11:04:25.157Value5Condition52RTN7501
122022-10-24 11:05:13.203V231600IOMULTI SKRUBBERNormal2022-10-24 11:04:25.157Value1Condition52RTN7501
132022-10-24 11:04:25.157V231600IOMULTI SKRUBBERAlarm2022-10-24 11:04:25.157Value3Condition52ACT7501
142022-10-23 06:20:45.767V231600IOMULTI SKRUBBERNormal2022-10-23 05:26:21.060Value5Condition52RTN7501
152022-10-23 05:28:48.247V231600IOMULTI SKRUBBERNormal2022-10-23 05:26:21.060Value1Condition52RTN7501
162022-10-23 05:26:21.060V231600IOMULTI SKRUBBERAlarm2022-10-23 05:26:21.060Value3Condition52ACT7501
172022-10-21 22:06:28.377V231600IOMULTI SKRUBBERNormal2022-10-21 20:54:02.787Value5Condition52RTN7501
182022-10-21 20:54:40.920V231600IOMULTI SKRUBBERAlarm2022-10-21 20:54:02.787Value7Condition52ACT7501
192022-10-21 20:54:02.787V231600IOMULTI SKRUBBERAlarm2022-10-21 20:54:02.787Value3Condition52ACT7501
Data
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Time between events
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,189
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top