Seeking MATCH and INDEX Assistance

kstehly

New Member
Joined
Feb 21, 2011
Messages
9
I am utilizing a combined MATCH and INDEX function to search several columns of data and return data in a specific column from the MATCHed ROW. It works when I only search 1 column, however when I ask it to search multiple columns or an array, it returns a N/A. Any idea why it won't search the array / multiple columns?

Alternately, is there a function which combines multiple searches so I can search multiple columns?

Any assistance would be greatly appreciated. Thanks.
 
Hi guys -

Thanks so much for your help. I'm still working on it. I believe my root question is Can Excel MATCH search across multiple columns? Thanks again for your help.
Excel Workbook
EFGH
21Data:
22100-xay88
23200-yb44z
24500-z111dg
25
26matchindex-match
27g3500-z
28a
29d#N/A
Match Text Num
Excel 2007
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Try;

<b>Excel 2007</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>E</th><th>F</th><th>G</th><th>H</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">21</td><td style=";">Data:</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">22</td><td style=";">100-x</td><td style=";">a</td><td style=";">y</td><td style="text-align: right;;">88</td></tr><tr ><td style="color: #161120;text-align: center;">23</td><td style=";">200-y</td><td style=";">b</td><td style="text-align: right;;">44</td><td style=";">z</td></tr><tr ><td style="color: #161120;text-align: center;">24</td><td style=";">500-z</td><td style="text-align: right;;">111</td><td style=";">d</td><td style=";">g</td></tr><tr ><td style="color: #161120;text-align: center;">25</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">26</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">27</td><td style=";">g</td><td style=";">500-z</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">28</td><td style=";">a</td><td style=";">100-x</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">29</td><td style=";">d</td><td style=";">500-z</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Array Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><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: #E0E0F0;color: #161120">F27</th><td style="text-align:left">{=INDEX(<font color="Blue">E:E,SMALL(<font color="Red">IF(<font color="Green">$F$22:$H$24=E27,ROW(<font color="Purple">$F$22:$H$24</font>)</font>),1</font>)</font>)}</td></tr></tbody></table><b>Entered with Ctrl+Shift+Enter.</b> If entered correctly, Excel will surround with curly braces {}.
<b>Note: Do not try and enter the {} manually yourself</b></td></tr></table><br />
Copied down...
 
Upvote 0
Omigosh, I think this might work! I'm going to try to apply this to the spreadsheet. THANK YOU Haseeb.
 
Upvote 0
I'm almost there. My actual array has many blank cells. Is there any function which accomplishes the same thing as SMALL but can accomoddate empty cells?

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,862
Members
452,948
Latest member
UsmanAli786

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