Time Calculation for a Unique ID with Multiple Lines/Instances

TeamOSupremeO

New Member
Joined
May 16, 2018
Messages
4
ID
Assigned Queue
Queue Entry Time
Time in Queue
AAA
Test
12/12/17 3:00
(need calculation)
BBB
Production
6/1/18 7:00
BBB
Test
3/2/18 3:00
CCC
Quality Check
6/12/18 2:00
CCC
Production
6/25/18 4:00
AAA
Quality Check
12/25/17 6:00
BBB
Quality Check
5/23/18 4:30
CCC
Test
6/1/18 8:00
AAA
Production
1/19/18 12:30

<tbody>
</tbody>

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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,214,982
Messages
6,122,573
Members
449,089
Latest member
Motoracer88

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