Using Vlookup - Need help

Prabhu989

New Member
Joined
Jan 3, 2016
Messages
7
Hello,


I have a set of data sorted by the Order_id Sorted column with it's associated data fields like amount, status etc. Theres another set of columns, order_id Unsorted and it's corresponding card_type Unsorted column.


Now the unsorted Order_id's exist in the sorted order_id's, theyr just randomized. I just want the card_type assigned to the sorted order_id's by matching the two order_id's.


Hope that's clear?


Here's a sample:


[TABLE="width: 439"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]order_id Sorted[/TD]
[TD]Card Type Sorted ?[/TD]
[TD]order_id Unsorted[/TD]
[TD]card_type Unsorted[/TD]
[/TR]
[TR]
[TD]IKP-1490337362-6599[/TD]
[TD][/TD]
[TD]REG-1475288853-6512[/TD]
[TD]CREDIT[/TD]
[/TR]
[TR]
[TD]REG-1490336608-1999[/TD]
[TD][/TD]
[TD]REG-1475302612-6126[/TD]
[TD]CREDIT[/TD]
[/TR]
[TR]
[TD]REG-1475302612-6126[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]REG-1490336003-8008[/TD]
[TD][/TD]
[TD]DON-1475313483-2840[/TD]
[TD]CREDIT[/TD]
[/TR]
[TR]
[TD]REG-1490335828-2197[/TD]
[TD][/TD]
[TD]DON-1475306752-3817[/TD]
[TD]CREDIT[/TD]
[/TR]
[TR]
[TD]REG-1490335695-9367[/TD]
[TD][/TD]
[TD]REG-1475342658-1172[/TD]
[TD]DEBIT


[/TD]
[/TR]
</tbody>[/TABLE]


Thanks.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
can you use offset with match because then it does not matter that the target range is not sorted
 
Upvote 0
Assuming your data starts in A1. In column B1 =vlookup(A1,$D1:$E$10,2,0) [ENTER USING CNTL+ALT+ENTER]
 
Upvote 0

Forum statistics

Threads
1,225,073
Messages
6,182,702
Members
453,132
Latest member
nsnodgrass73

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