Hi there!
I have attached a dummy workbook of what I'm trying to do. I have a raw data sheet that auto populates from an hmi database. On the raw data sheet, date & time are populated for every minute over the course of 30 days. For each date & time instance, a code runs (in the hmi) to see if any pieces of equipment have turned off or started back up during that minute timestamp. If a piece of equipment has shut off, it will say "start" under "Downtime Start", else it will say "no start". If the equipment comes back on during that timestamp, it will say "end" under "Downtime End", else it will say "no end". These columns can be sorted to find the desired information to populate the next sheet in the workbook via copy/paste, but with the large volume of data and equipment and time, it would be a lot easier if I could figure out how to write a formula for each piece of equipment to search the Downtime start column for the instances of "start" and the following column for the instances of "end" and populate the corresponding time stamps onto the second sheet. I think I may need another sheet to first collect the useful data separated by piece of equipment before populating it all into one sheet? Maybe not. I started to do this with a logical IF function but there's no way to skip over the data that doesn't meet the criteria, so I still end up with a list that needs sorted for true/false instances. Also, for a vlookup, it just returns the first instance from each column repeatedly. Please help!!
Bookmarks