Index+Match/ Vlookup help

Demosassiner

New Member
Joined
Aug 13, 2017
Messages
7
Hi guys, hoping you can help with this. I currently have two tables, main and input/output below. I need a way to pull the "name" field that corresponds to the "main" code in the main table (which is in column D of input/output table). In other words, a formula to give me column E. Any ideas?

Main:
Row\Col
A​
B​
C​
1​
NameCodeNumber
2​
MicrosoftMSFT0005
3​
Microsoft LtdMICR0010
4​
Apple IncAAPL0005
5​
Apple (Foreign)APLE0010
6​
Apple Co.APCO0222
7​
FacebookFCBK0050
8​
Facebook CorpFBBC0010
9​
Facebook LLCFACE0111

<tbody>
</tbody>




io (input and output, where output = main code)

Row\Col
A​
B​
C​
D​
E
1​
CodeNameNumberMain CodeMain Name
2​
MicroMicrosoft Inc0010MICRMicrosoft Ltd
3​
Apple123Apple0005AAPLApple Inc
4​
Fbook1Facebook Inc0010FBBCFacebook Corp

<tbody>
</tbody>


 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Where sheet1 has your main table.
Code:
=INDEX(Sheet1!$A$2:$A$9,MATCH(D2,Sheet1!$B$2:$B$9,0))
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,447
Members
448,966
Latest member
DannyC96

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