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 :(


<tbody>
</tbody>
LocationOld CodeNew Code
AAVR=INDEX(Table2,MATCH([@Old Code],Table2[#All],0),8)
NVVB
GXX
WYY
p9S
CRCM1M
TH

<tbody>
</tbody>

Table 2:
ANGWPCTNew Code
ABBPPS2PLAB
APBAP
SSWSS
9PLAL
APGGG
AVGYVG2BFGA
AVHYVZ9BFGR
AVNFVGAA
AVRVVB9SVR
VVZSB
BBBYA
BBFBG
BDLLS
BFBFA
BFVFV
BPGRCM1MPG
BPTCP
BSGSG
BSSSW
BVDVG
BVRHG
BVAVA
BVSVS
BVLCD
BWCWT
BWDWT
BWWWT
BZBVZ
BZGVZ
BLTFT

<tbody>
</tbody>

cBRAwS
2018_02_12_15_32_34.png
 
Last edited:

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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
It works based on your example. Just change the table names to suit.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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