Calculation of a duration between 2 Timestamps according to variation of a field

kilouli

New Member
Joined
Aug 13, 2015
Messages
2
Hi everyone,

so I have a table (See end of the message) that lists the movements of my pallets in the warehouse.
As you can see 1 pallet goes from 1 Location to another.
I want to be able to calculate the difference of time between 2 locations.
In this case I want to calculate the difference between the 1st time the pallet NTW33459 is registered in the location A999 and the moment it moves from this location to the other location A05882.
Is it possible to set a fornula that would take into account the location field and that would measure the difference between the 2 timestamps ?
Have a nice day , thx a lot

Alexandre
[TABLE="width: 500"]
<tbody>[TR]
[TD]Time[/TD]
[TD]Location[/TD]
[TD]PalletID[/TD]
[/TR]
[TR]
[TD]8:00[/TD]
[TD]A999 [/TD]
[TD]NTW33459 [/TD]
[/TR]
[TR]
[TD]9:00[/TD]
[TD]A999 [/TD]
[TD]NTW33459 [/TD]
[/TR]
[TR]
[TD]10:00[/TD]
[TD]A999 [/TD]
[TD]NTW33459 [/TD]
[/TR]
[TR]
[TD]14:30[/TD]
[TD]A05882[/TD]
[TD]NTW33459 [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Will the times always be sorted from earliest to latest time?
What happens if a pallett is in location 1 at 23:00 and location 2 at 04:00am the next morning, ie different days?

Will there only ever be two locations for each pallett?
There wont be something like

Code:
8:00  A999   NTW33459
9:00  A999   NTW33459
10:00 A999   NTW33459
14:30 A05882 NTW33459
16:00 A12345 NTW33459
17:00 A67890 NTW33459
 
Last edited:
Upvote 0
Will the times always be sorted from earliest to latest time?
What happens if a pallett is in location 1 at 23:00 and location 2 at 04:00am the next morning, ie different days?

Will there only ever be two locations for each pallett?
There wont be something like

Code:
8:00  A999   NTW33459
9:00  A999   NTW33459
10:00 A999   NTW33459
14:30 A05882 NTW33459
16:00 A12345 NTW33459
17:00 A67890 NTW33459


Yes only two locations only.
For selecting the minimum time I thought A min() function could work ?
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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