G
Guest
I use a program that exports times into an excel document to allow additional analysis. It exports X number of start times for the first group with each value on its own line and all in one cell. X number of ending times are placed in the next cell in the same manner, each on its own line. The next row has start and end times for however many items were in that group, and continues with each row having all of the times for one group. Is there a way to calculate the duration between start and end times for each of the values in a cell
A B
--------------------------------------
04:25:30 | 04:27:35 |
04:26:30 | 04:28:17 |
04:31:06 | 04:32:48 |
--------------------------------------
15:38:22 | 15:52:51 |
15:33:04 | 15:37:42 |
--------------------------------------
Here is what I came up with, but it returns the decimal value for the time, and can not automatically account for the number of items in each group. Also, the three separate lines are required to have the output formatting match the input formatting. Surely there is a better way to handle this. Thank you for your help
=CONCATENATE(MID(B1,1,8)-MID(A1,1,8),
",MID(B1,10,8)-MID(A1,10,8),
",MID(B1,19,8)-MID(A1,19,8))
A B
--------------------------------------
04:25:30 | 04:27:35 |
04:26:30 | 04:28:17 |
04:31:06 | 04:32:48 |
--------------------------------------
15:38:22 | 15:52:51 |
15:33:04 | 15:37:42 |
--------------------------------------
Here is what I came up with, but it returns the decimal value for the time, and can not automatically account for the number of items in each group. Also, the three separate lines are required to have the output formatting match the input formatting. Surely there is a better way to handle this. Thank you for your help
=CONCATENATE(MID(B1,1,8)-MID(A1,1,8),
",MID(B1,10,8)-MID(A1,10,8),
",MID(B1,19,8)-MID(A1,19,8))