How to match on both ID and Date from another sheet

futurehead84

New Member
Joined
Feb 28, 2019
Messages
3
Hi there,

I am attempting to separate values for the same ID from different dates.

Basically on the earlier date the delivery failed and was redelivered on a later date.

Obviously this means the details of the delivery are different for each date.

I have tried vlookup but am only able to get the value for the first date as the IDs are the same for the different dates.

I have heard about the MATCH function, but am unsure how to use it especially across different sheets.

Any help would be appreciated

Thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I agree with Special-K99 its difficult to help without seeing some sort of test data.

OR on BOTH sheets create a unique ID by concatenating the ID&DeliveryDate << do a vlookup using this.
 
Last edited:
Upvote 0
Hi thanks for your replies.

Please find below samples from both files I need data for

Delivery IdDepot Name/IDDelivery DateCustomer Timed Window start time
458070693118/02/201907:00:00
455945683118/02/201907:00:00
457864593118/02/201907:00:00
458070693121/02/201907:00:00
455945683120/02/201907:00:00
457988123118/02/201911:00:00

<colgroup><col span="3"><col></colgroup><tbody>
</tbody>



Other file

OdeKeyEarlyDateTimePlanned Arrived Date
4580706918/02/201906:45:00
4580854418/02/201907:15:00
4577703418/02/201907:19:00
4576200218/02/201912:02:00
4580395418/02/201907:54:00
4574489918/02/201914:13:00
4581151418/02/201906:57:00
4580905818/02/201907:04:00
4577694818/02/201912:03:00
4580884219/02/201912:10:00
4579806719/02/201907:32:00
4580906518/02/201906:41:00
4577936821/02/201911:51:00
4581297119/02/201906:55:00
4581098919/02/201911:19:00
4581120619/02/201907:14:00
4581120320/02/201906:52:00
4581198320/02/201911:28:00
4581396519/02/201907:23:00
4581438219/02/201906:44:00

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Many thanks to you both for your replies.

Please find below a couple of examples of the data

Delivery Id (Kratzer Order Number)Depot Name/IDDelivery DateActual Arrive Time Geofence/start job value
458250224320/02/2019-
458250224322/02/2019-

<colgroup><col span="3"><col></colgroup><tbody>
</tbody>


source data:

idKeyEarlyDatePlanned Arrived arrived TimeDeparted Time
4582508621/02/201914:11:0013:48:0013:48:00
4582502220/02/201913:23:0013:06:0013:06:00
4582504123/02/201915:50:0015:53:0015:53:00
4582504619/02/201919:56:0018:14:0018:14:00
4582509323/02/201916:40:0016:41:0016:41:00
4582502222/02/201920:32:0020:23:0020:23:00

<colgroup><col><col><col><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0
Many thanks to you both for your replies.

Please find below a couple of examples of the data

Delivery Id (Kratzer Order Number)Depot Name/IDDelivery DateActual Arrive Time Geofence/start job value
458250224320/02/2019-
458250224322/02/2019-

<tbody>
</tbody>


source data:

idKeyEarlyDatePlanned Arrivedarrived TimeDeparted Time
4582508621/02/201914:11:0013:48:0013:48:00
4582502220/02/201913:23:0013:06:0013:06:00
4582504123/02/201915:50:0015:53:0015:53:00
4582504619/02/201919:56:0018:14:0018:14:00
4582509323/02/201916:40:0016:41:0016:41:00
4582502222/02/201920:32:0020:23:0020:23:00

<tbody>
</tbody>
If you ONLY want the latest date for an ID you could try this

=MAX(IF(A:A=A2,B:B))

*this formula requires you to press Ctrl + Shift + Enter
 
Upvote 0

Forum statistics

Threads
1,215,018
Messages
6,122,703
Members
449,093
Latest member
Mnur

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