This problem should be easy, but it hasn't been for me. I am trying to get a macro to look at the value in A1 and compare it to B1. It the number after the decimal is different, I need it to subtract the number and put it in H1. If the number is the same then I need it to go to C1 and compare. Here is one of the kickers. The data goes A1, B1, C1, D1, E1 then A2, B2, C2, D2, E2 then A3, etc...
All the data after the decimal is either a .1 or a .6. So what I am really trying to do is hold a value in a variable that has a .1 until it finds a .6. When it finds the .6 it subtracts the .1 from the and gives me the time in H column. Then the variable holds onto the .6 value and continues looking for the next .1 value. Once found and subtracted, that number is place in the I column.
The numbers to the left of the decimal are seconds. I am trying to find out how long each event takes before switching to the next event. I hope this is clearer then I think it is!! Please see attached data sheet for an example. So far I have just counted it by hand.
Events.xlsx
Bookmarks