index match

blicop

New Member
Joined
Aug 9, 2011
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Please help. Cant get index and match to work :(

[TABLE="width: 224"]
<tbody>[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Location[/TD]
[TD]Old Code[/TD]
[TD]New Code[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]AVR[/TD]
[TD]=INDEX(Table2,MATCH([@Old Code],Table2[#All],0),8)[/TD]
[/TR]
[TR]
[TD]N[/TD]
[TD]VVB[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]XX[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]W[/TD]
[TD]YY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]p[/TD]
[TD]9S[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]RCM1M[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]T[/TD]
[TD]H[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Table 2:
[TABLE="width: 566"]
<tbody>[TR]
[TD]A[/TD]
[TD]N[/TD]
[TD]G[/TD]
[TD]W[/TD]
[TD]P[/TD]
[TD]C[/TD]
[TD]T[/TD]
[TD]New Code[/TD]
[/TR]
[TR]
[TD]ABB[/TD]
[TD]PPS[/TD]
[TD][/TD]
[TD][/TD]
[TD]2PL[/TD]
[TD][/TD]
[TD][/TD]
[TD]AB[/TD]
[/TR]
[TR]
[TD]APB[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]AP[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]SSW[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]SS[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]9PL[/TD]
[TD][/TD]
[TD][/TD]
[TD]AL[/TD]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[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]WT[/TD]
[/TR]
[TR]
[TD]BZB[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]VZ[/TD]
[/TR]
[TR]
[TD]BZG[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]VZ[/TD]
[/TR]
[TR]
[TD]BLT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]FT[/TD]
[/TR]
</tbody>[/TABLE]

cBRAwS
2018_02_12_15_32_34.png
 
Last edited:

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Here's an index match match or another option using lookup:

=INDEX(Table2[[#All],[New Code]],MATCH(Table1[@[Old Code]],INDEX(Table2[#All],,MATCH(Table1[@Location],Table2[#Headers],0)),0))
=LOOKUP(2,1/(INDEX(Table2[#All],,MATCH(Table1[@Location],Table2[#Headers],0))=Table1[@[Old Code]]),Table2[[#All],[New Code]])
 
Upvote 0
This will also suffice in C3:

Code:
=IFNA(INDEX(Table2,MATCH([Old Code],INDEX(Table2,,MATCH([@Location],Table2[[#Headers],[A]:[T]],0)),0),8),"")
 
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