Index match

Zubair

Active Member
Joined
Jul 4, 2009
Messages
304
Office Version
  1. 2016
Platform
  1. Windows
Hi

What mistake I am doing to get figure 150 in cell G2? Please help

formula I am applying
=INDEX($B$2:$D$5,MATCH(1,($A$2:$A$5=$F2)),MATCH(G1,$B$1:$D$1,0))



SizeAlpha KraftBox BoardDeltaAlpha Kraft
20​
150​
0​
0​
20​
#N/A​
21​
0​
5​
0​
22​
0​
0​
15​
23​
0​
0​
0​
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
try
=INDEX(B3:D6,MATCH(F3,A3:A6,0),MATCH(G2,B2:D2,0))

I'm assuming the numbers are formatted as numbers , maybe changed to text when I copied to excle
Book11
ABCDEFG
1
2SizeAlpha KraftBox BoardDeltaAlpha Kraft
3201500020150
421750217
5228015239
623900#N/A
7#N/A
8
Sheet1
Cell Formulas
RangeFormula
G3:G7G3=INDEX($B$3:$D$6,MATCH(F3,$A$3:$A$6,0),MATCH(G$2,$B$2:$D$2,0))
 
Upvote 0
Solution
What mistake I am doing to get figure 150 in cell G2? Please help

formula I am applying
=INDEX($B$2:$D$5,MATCH(1,($A$2:$A$5=$F2)),MATCH(G1,$B$1:$D$1,0))
To answer your question: The mistake(s) are in the blue section
  • ($A$2:$A$5=$F2) produces an array of TRUE/FALSE values yet you are trying to match a "1". You need to either
    - Change the "1" to TRUE, or
    - coerce the TRUE/FALSE array into 1's and 0's as shown below

  • In any case that blue MATCH is not looking for an exact match like your final MATCH is since you are missing the third argument of zero

  • Finally, I think in your Excel version that formula would need to be confirmed with Ctrl+Shift+Enter, not just Enter

So, you could have done it like this, but I think that @etaf's approach is better and would make your two MATCH functions similar.

22 02 17.xlsm
ABCDEFG
1SizeAlpha KraftBox BoardDeltaAlpha Kraft
2201500020150
321750
4228015
523900
Index match
Cell Formulas
RangeFormula
G2G2=INDEX($B$2:$D$5,MATCH(1,--($A$2:$A$5=$F2),0),MATCH(G1,$B$1:$D$1,0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,865
Messages
6,121,988
Members
449,060
Latest member
mtsheetz

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