Hi All,
I have the following data set:
ID Sequence Type Time
R0000039 0 Manual 03:11:45.014
R0000039 1 Manual 03:11:45.018
R0000039 2 Manual 03:11:45.441
R0000059 0 Manual 03:14:33.857
R0000059 1 Manual 03:14:33.860
R0000059 2 Manual 03:14:33.868
R0000073 0 Internal 03:17:21.007
R0000073 1 Internal 03:17:21.010
R0000073 2 Internal 03:17:21.051
R0000165 0 Automatic 03:32:31.845
R0000165 1 Automatic 03:32:31.850
R0000165 2 Automatic 03:32:34.957
I'm interested in creating a separate column that:
a) looks up the ID (column A)
b) for each unique ID, finds the largest Sequence #
c) takes the Time for the largest Sequence #
d) subtracts the Time found in step "c" from the Time corresponding to the smallest Sequence number for that given ID
For example, the R0000039 ID would be 03:11:45.441 - 03:11:45.014, or 427 milliseconds.
I've tried to use MAXIFS(), but that didn't seem to work.
Any ideas on how to tackle this (either with VBA or a formula)? Thanks!
I have the following data set:
ID Sequence Type Time
R0000039 0 Manual 03:11:45.014
R0000039 1 Manual 03:11:45.018
R0000039 2 Manual 03:11:45.441
R0000059 0 Manual 03:14:33.857
R0000059 1 Manual 03:14:33.860
R0000059 2 Manual 03:14:33.868
R0000073 0 Internal 03:17:21.007
R0000073 1 Internal 03:17:21.010
R0000073 2 Internal 03:17:21.051
R0000165 0 Automatic 03:32:31.845
R0000165 1 Automatic 03:32:31.850
R0000165 2 Automatic 03:32:34.957
I'm interested in creating a separate column that:
a) looks up the ID (column A)
b) for each unique ID, finds the largest Sequence #
c) takes the Time for the largest Sequence #
d) subtracts the Time found in step "c" from the Time corresponding to the smallest Sequence number for that given ID
For example, the R0000039 ID would be 03:11:45.441 - 03:11:45.014, or 427 milliseconds.
I've tried to use MAXIFS(), but that didn't seem to work.
Any ideas on how to tackle this (either with VBA or a formula)? Thanks!