Index match column and row

SAXON10

Board Regular
Joined
Jun 1, 2017
Messages
109
Hi,

I am trying to index match with three different table ranges. I am apply the following formula in

B16=IF(MATCH(A$15,$A$2:$B$2,0),VLOOKUP($A16,$A$3:$B$12,2,0)) the formula working fine but the problem is every time I have change table ranges. I

need one formula for whole table range.

Any help much appreciated.

Data Range: A2:K12

DATA
TATATEXTFORCETEXTTEXT1HEROTEXTTEXT1TEXT2
5848ORDER5848ORDERUS5848ORDERUSUS
6847NOT6847NOTUK6847ORDERUKUK
68798ORDER68798ORDERCHINA68798ORDERCHINACHINA
4587ORDER4587ORDERNZ4587ORDERNZNZ
1112ORDER1112NOTAUS1112ORDERAUSAUS
22235ORDER22235NOTEUR22235ORDEREUREUR
456ORDER456CANCELRUS456ORDERRUSRUS
487ORDER487ORDERERA487REJERAERA
587NOT587NOTNIPA587PENDINGNIPANIPA
657ORDER657ORDERBAN657ORDERBANBAN
FORMULA REQUIRED
TATATEXTFORCETEXTHEROTEXT
6847NOT1112NOT456ORDER
68798ORDER22235NOT487REJ
4587ORDER456CANCEL587PENDING
1112ORDER

<tbody>
</tbody>


https://www.dropbox.com/s/379m87ppijo31b2/INDEX MATCH.xlsx?dl=0
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
in B16:
<b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">B16</th><td style="text-align:left">=INDEX(<font color="Blue">(<font color="Red">$A$2:$B$11,$D$2:$F$11,$H$2:$K$11</font>),MATCH(<font color="Red">A16,$A$2:$A$11,0</font>),2,1+QUOTIENT(<font color="Red">COLUMNS(<font color="Green">$B16:B16</font>)-1,2</font>)</font>)</td></tr></tbody></table></td></tr></table><br />

then copy it into the other green cells



Excel 2013/2016
ABCDEFGHIJK
1TATATEXTFORCETEXTTEXT1HEROTEXTTEXT1TEXT2
25848ORDER5848ORDERUS5848ORDERUSUS
36847NOT6847NOTUK6847ORDERUKUK
468798ORDER68798ORDERCHINA68798ORDERCHINACHINA
54587ORDER4587ORDERNZ4587ORDERNZNZ
61112ORDER1112NOTAUS1112ORDERAUSAUS
722235ORDER22235NOTEUR22235ORDEREUREUR
8456ORDER456CANCELRUS456ORDERRUSRUS
9487ORDER487ORDERERA487REJERAERA
10587NOT587NOTNIPA587PENDINGNIPANIPA
11657ORDER657ORDERBAN657ORDERBANBAN
12
13
14
15TATATEXTFORCETEXTHEROTEXT
166847NOT1112NOT456ORDER
1768798ORDER22235NOT487REJ
184587ORDER456CANCEL587PENDING
191112ORDER
Sheet4
 
Upvote 0
Quick question how do add the name range(A15) in the same formula. Please help me.


in B16:
Worksheet Formulas
CellFormula
B16=INDEX(($A$2:$B$11,$D$2:$F$11,$H$2:$K$11),MATCH(A16,$A$2:$A$11,0),2,1+QUOTIENT(COLUMNS($B16:B16)-1,2))

<thead>
</thead><tbody>
</tbody>



then copy it into the other green cells


Excel 2013/2016
ABCDEFGHIJK
1TATATEXTFORCETEXTTEXT1HEROTEXTTEXT1TEXT2
25848ORDER5848ORDERUS5848ORDERUSUS
36847NOT6847NOTUK6847ORDERUKUK
468798ORDER68798ORDERCHINA68798ORDERCHINACHINA
54587ORDER4587ORDERNZ4587ORDERNZNZ
61112ORDER1112NOTAUS1112ORDERAUSAUS
722235ORDER22235NOTEUR22235ORDEREUREUR
8456ORDER456CANCELRUS456ORDERRUSRUS
9487ORDER487ORDERERA487REJERAERA
10587NOT587NOTNIPA587PENDINGNIPANIPA
11657ORDER657ORDERBAN657ORDERBANBAN
12
13
14
15TATATEXTFORCETEXTHEROTEXT
166847NOT1112NOT456ORDER
1768798ORDER22235NOT487REJ
184587ORDER456CANCEL587PENDING
191112ORDER

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet4
 
Upvote 0
Hi,

Yes you missing the following name range TATA, HERO and FORCE.(MATCH(FORCE)(A15,C15 AND E15)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,436
Messages
6,124,869
Members
449,192
Latest member
MoonDancer

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