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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
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))
 

dbrown

New Member
Joined
Mar 16, 2006
Messages
40
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)
 

wyeah

Board Regular
Joined
Jun 23, 2003
Messages
92
Thanks to both of you for the quick response. Either one will work.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,423
Messages
5,837,152
Members
430,479
Latest member
mamush200

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
Top