INDEX MATCH formula HELP

kennethwu123

New Member
Joined
Jul 22, 2019
Messages
6
ABCDEFGHI
1
2266250%ad
3133120%bf
4
5abcdefgh
6266250%0%0%50%0%0%0%0%
713310%20%0%0%0%20%0%0%
8
9

<tbody>
</tbody>

Hi everyone

May I know what array formula should I type in Cell D2 in order to retrieve the result..

pls help, tried many INDEX MATCH formula but still failed
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi & welcome to MrExcel.
In D2 copied down & across
=IFERROR(INDEX($B$5:$I$5,AGGREGATE(15,6,(COLUMN($B$5:$I$5)-COLUMN($B$5)+1)/(($A$6:$A$7=$A2)*($B$6:$I$7=$B2)),COLUMNS($A$1:A$1))),"")
 
Upvote 0
Welcome to the forum

Another way with array forumula

<table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td><td >D</td><td >E</td><td >F</td><td >G</td><td >H</td><td >I</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td style="text-align:right; ">2662</td><td style="text-align:right; ">50%</td><td > </td><td >a</td><td >d</td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td style="text-align:right; ">1331</td><td style="text-align:right; ">20%</td><td > </td><td >b</td><td >f</td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td > </td><td style="background-color:#92d050; ">a</td><td style="background-color:#92d050; ">b</td><td style="background-color:#92d050; ">c</td><td style="background-color:#92d050; ">d</td><td style="background-color:#92d050; ">e</td><td style="background-color:#92d050; ">f</td><td style="background-color:#92d050; ">g</td><td style="background-color:#92d050; ">h</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td style="text-align:right; ">2662</td><td style="text-align:right; ">50%</td><td style="text-align:right; ">0%</td><td style="text-align:right; ">0%</td><td style="text-align:right; ">50%</td><td style="text-align:right; ">0%</td><td style="text-align:right; ">0%</td><td style="text-align:right; ">0%</td><td style="text-align:right; ">0%</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td style="text-align:right; ">1331</td><td style="text-align:right; ">0%</td><td style="text-align:right; ">20%</td><td style="text-align:right; ">0%</td><td style="text-align:right; ">0%</td><td style="text-align:right; ">0%</td><td style="text-align:right; ">20%</td><td style="text-align:right; ">0%</td><td style="text-align:right; ">0%</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b></b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Array Formula</td></tr><tr><td >D2</td><td >{=IFERROR(INDEX($A$5:$I$5,0,SMALL(IF($A$6:$A$7=$A2,IF($B$6:$I$7=$B2,COLUMN($B$5:$I$5))),COLUMNS($D$1:D1))),"")}</td></tr></table></td></tr></table>

Array formulas
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself
 
Upvote 0

Forum statistics

Threads
1,213,482
Messages
6,113,916
Members
448,533
Latest member
thietbibeboiwasaco

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