Index or Match??

wyeah

Board Regular
Joined
Jun 23, 2003
Messages
92
Excel 2007, Windows XP...
I need a formula in cell Q7 that will return the value in the table, A2:K19, that match the intersection of the values in M7 and N7. Ex: M7=1211502, N7= K06 - MES_TargetRate, I need to return 46. I have a vLookup in column P but I do not want to change the row # every time the column N changes.

Thanks


Excel Workbook
AFGHIJKLMNOPQ
2Code1K01 - MES_TargetRateK02 - MES_TargetRateK03 - MES_TargetRateK04 - MES_TargetRateK05 - MES_TargetRateK06 - MES_TargetRate******
31033701*3218****product_codecharacteristic_namecharacteristic_valueRFS*
4110450135353525***1062700K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 49#N/A*
51168700**18****1211500K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 30#N/A*
61168701**18****1211501K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 45#N/A*
71168901**20****1211502K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 46* * * 46*
81169001**16****1211600K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 40#N/A*
91169101**20****1211601K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 40#N/A*
101169201**21****1211602K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 42* * * 42*
111211000*3418****1211700K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 46#N/A*
121211001*3418****1211800K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 40#N/A*
131211101**2638***1211801K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 40#N/A*
141211200****25**1211802K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 40* * * 40*
151211201****25**1602800K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 38#N/A*
161211300*3418****1602810K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 38#N/A*
171211400**2630***1602900K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 26#N/A*
181211502**32294946*1603600K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 40#N/A*
191211602**32*4942*1603601K06 - MES_TargetRate* * * * * * * * * * * * * * * * * 45* * * 4245
Sheet1
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Actually, you need both Index AND Match...

Try this in O4 and filled down.

=IDNEX($A$2:$K$19,MATCH($M4,$A$2:$A$19,0),MATCH($N4,$A$2:$K$2,0))
 
Upvote 0
You could also use a VLOOKUP formula and use a MATCH function to automate the col_index_num argument of the VLOOKUP function

try this in O4 and fill down

=VLOOKUP(M4,$A$2:$K$19,MATCH($N4,$A$2:$K$2,0),0)
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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