Returning Value from Time Ranges

Mooboos

New Member
Joined
Mar 9, 2016
Messages
8
Hi Everyone
I have a data table that shows a list of times Trailers were tipped, from which site in time order such as
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Despatch Site[/TD]
[TD]Time of Trailer Unloaded[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]28/02/2016[/TD]
[TD]MD01[/TD]
[TD]06:13[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]28/02/2016[/TD]
[TD]KA09[/TD]
[TD]06:56[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]28/02/2016[/TD]
[TD]MD19[/TD]
[TD]07:42[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


I then on a separate sheet have a list of data with times on which I need to return the value of the Despatch Site for that time.

So
[TABLE="width: 500"]
<tbody>[TR]
[TD]06:20[/TD]
[/TR]
[TR]
[TD]06:31[/TD]
[/TR]
[TR]
[TD]07:50[/TD]
[/TR]
</tbody>[/TABLE]

Would return These despatch sites as they fall within the time period before the next Trailer
06:20 MD01
06:31 MD01
07:50 MD19

Does anyone know of a calculation for me to do this and not do it manually?

Thanks in advance
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD]
B
[/TD]
[TD]
C
[/TD]
[TD]
D
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]Date[/TD]
[TD]Despatch Site[/TD]
[TD]Time of Trailer Unloaded[/TD]
[TD]Sheet1[/TD]
[/TR]
[TR]
[TD]
2
[/TD]
[TD]28/02/2016[/TD]
[TD]MD01[/TD]
[TD]
6:13​
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
3
[/TD]
[TD]28/02/2016[/TD]
[TD]KA09[/TD]
[TD]
6:56​
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
4
[/TD]
[TD]28/02/2016[/TD]
[TD]MD19[/TD]
[TD]
7:42​
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]




[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD]
B
[/TD]
[TD]
C
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]
6:20​
[/TD]
[TD]MD01[/TD]
[TD]sheet2[/TD]
[/TR]
[TR]
[TD]
2
[/TD]
[TD]
6:31​
[/TD]
[TD]MD01[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
3
[/TD]
[TD]
7:50​
[/TD]
[TD]MD19[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


B1 =LOOKUP(Sheet2!A1,Sheet1!$C$2:$C$4,Sheet1!$B$2:$B$4) copy down
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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