Time Calculation for a Unique ID with Multiple Lines/Instances

TeamOSupremeO

New Member
Joined
May 16, 2018
Messages
4
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID
[/TD]
[TD]Assigned Queue
[/TD]
[TD]Queue Entry Time
[/TD]
[TD]Time in Queue
[/TD]
[/TR]
[TR]
[TD]AAA
[/TD]
[TD]Test
[/TD]
[TD]12/12/17 3:00
[/TD]
[TD](need calculation)
[/TD]
[/TR]
[TR]
[TD]BBB
[/TD]
[TD]Production
[/TD]
[TD]6/1/18 7:00
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BBB
[/TD]
[TD]Test
[/TD]
[TD]3/2/18 3:00
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CCC
[/TD]
[TD]Quality Check
[/TD]
[TD]6/12/18 2:00
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CCC
[/TD]
[TD]Production
[/TD]
[TD]6/25/18 4:00
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AAA
[/TD]
[TD]Quality Check
[/TD]
[TD]12/25/17 6:00
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BBB
[/TD]
[TD]Quality Check
[/TD]
[TD]5/23/18 4:30
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CCC
[/TD]
[TD]Test
[/TD]
[TD]6/1/18 8:00
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AAA
[/TD]
[TD]Production
[/TD]
[TD]1/19/18 12:30
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I have unique ID items that appear in multiple lines within a workbook, not necessarily one line after the other. Each line represents a new assignment (queue) for that item ID. The line contains the date/time when the unique ID was assigned to the new queue, but not how long it stays in the queue before new assignment.

I am looking for a formula to calculate the time spent in each queue. I would need to subtract the 1st chronological assignment time from the 2nd chronological assignment time, the 2nd chronological assignment time from the 3rd chronological assignment time, etc. etc. etc. How can I accomplish this?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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