Problems With Index, Match Array Formula

ccsher77

New Member
Joined
Apr 7, 2011
Messages
12
Hi everyone,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
I am struggling with an issue regarding the Index, Match Array Formula below.<o:p></o:p>
<o:p></o:p>
Basically the formula is to check Certain columns and return data based on matches in those columns.<o:p></o:p>
The formula works well but in cells where the formula does not find a result it shows # N/A. <o:p></o:p>
Which in turn makes it impossible for me to calculate the sum, average etc of any column that has this #N/A in it.<o:p></o:p>
<o:p></o:p>
Is there a way that I can amend the formula to show a zero rather than #N/A without compromising the formula?<o:p></o:p>
<o:p></o:p>
{=INDEX($C$1:$C$100,MATCH(1,($A$1:$A$100=$N$1)*($B$1:$B$100=H4),0))}<o:p></o:p>
<o:p></o:p>
Thanks for any help in advance!!

Craig.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Try

=LOOKUP(9.99999999999999E+307,CHOOSE({1,2},0,INDEX($C$1:$C$100,MATCH(1,($A$1:$A$100=$N$1)*($B$1:$B$100=H4),0))))


Still entered as array with CSE

Hope that helps.
 
Upvote 0
Hi everyone,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
I am struggling with an issue regarding the Index, Match Array Formula below.<o:p></o:p>
<o:p></o:p>
Basically the formula is to check Certain columns and return data based on matches in those columns.<o:p></o:p>
The formula works well but in cells where the formula does not find a result it shows # N/A. <o:p></o:p>
Which in turn makes it impossible for me to calculate the sum, average etc of any column that has this #N/A in it.<o:p></o:p>
<o:p></o:p>
Is there a way that I can amend the formula to show a zero rather than #N/A without compromising the formula?<o:p></o:p>
<o:p></o:p>
{=INDEX($C$1:$C$100,MATCH(1,($A$1:$A$100=$N$1)*($B$1:$B$100=H4),0))}<o:p></o:p>
<o:p></o:p>
Thanks for any help in advance!!

Craig.
If you're using Excel 2007 or later try it like this...

Still array entered:

=IFERROR(INDEX($C$1:$C$100,MATCH(1,IF($A$1:$A$100=$N$1,IF($B$1:$B$100=H4,1)),0)),0)
 
Upvote 0
Thank you both for your Quck reply.

Both Worked very effectivley and has saved me a huge amount of

Frustration!!!

Thanks Once Again!!:)
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

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