Remove #N/A if index(match()) does not return value

bloodybrit90

Board Regular
Joined
Jul 18, 2011
Messages
111
Hi Guys,

When the following formula does not have a value it returns #N/A. How can I get excel not to display the #N/A? Maybe an if statement. I tried if formula is true return formual....but excel wouldnt move onto the false portion when i typed a comma. Any Ideas?

{=INDEX(Inputs!$G$31:$G$39,MATCH(Summary!D39,Inputs!$C$31:$C$39&" "&"Bedroom"&" "&Inputs!$B$31:$B$39,0))}
 
=IF(ISNA(INDEX(Inputs!$G$31:$G$39,MATCH(Summary!D39,Inputs!$C$31:$C$39&" "&"Bedroom"&" "&Inputs!$B$31:$B$39,0))),"",INDEX(Inputs!$G$31:$G$39,MATCH(Summary!D39,Inputs!$C$31:$C$39&" "&"Bedroom"&" "&Inputs!$B$31:$B$39,0)))
 
Upvote 0
Hi Guys,

When the following formula does not have a value it returns #N/A. How can I get excel not to display the #N/A? Maybe an if statement. I tried if formula is true return formual....but excel wouldnt move onto the false portion when i typed a comma. Any Ideas?

{=INDEX(Inputs!$G$31:$G$39,MATCH(Summary!D39,Inputs!$C$31:$C$39&" "&"Bedroom"&" "&Inputs!$B$31:$B$39,0))}

On Excel 2007 or later...
Rich (BB code):
{=IFERROR(INDEX(Inputs!$G$31:$G$39,
   MATCH(Summary!D39,Inputs!$C$31:$C$39&" "&
    "Bedroom"&" "&Inputs!$B$31:$B$39,0)),"")}

Otherwise...

If a text value is the expected outcome...
Rich (BB code):
=LOOKUP(REPT("z",255),CHOOSE({1,2},"",
  INDEX(Inputs!$G$31:$G$39,MATCH(Summary!D39,
   Inputs!$C$31:$C$39&" "&"Bedroom"&" "&Inputs!$B$31:$B$39,0))))
 
Upvote 0
=IF(ISNA(INDEX(Inputs!$G$31:$G$39,MATCH(Summary!D39,Inputs!$C$31:$C$39&" "&"Bedroom"&" "&Inputs!$B$31:$B$39,0))),"",INDEX(Inputs!$G$31:$G$39,MATCH(Summary!D39,Inputs!$C$31:$C$39&" "&"Bedroom"&" "&Inputs!$B$31:$B$39,0)))
Since the error will be generated by the MATCH function there is no need to include the INDEX function in the error trap (assuming there are not already errors in any of the referenced ranges). We can just test the MATCH function for the #N/A error.

=IF(ISNA(MATCH(Summary!D39,Inputs!$C$31:$C$39&" "&"Bedroom"&" "&Inputs!$B$31:$B$39,0)),"",INDEX(Inputs!$G$31:$G$39,MATCH(Summary!D39,Inputs!$C$31:$C$39&" "&"Bedroom"&" "&Inputs!$B$31:$B$39,0)))
 
Upvote 0
Hi there, I am a newbie at these formulas. can you please let me know how I can include the iferror in this to remove #N/A. I would be extremely grateful, I have read and tried a few of these posts, however nothing is working for me. My formula is;

{=INDEX(lastsaledata,MATCH(1,(lastsalecust=$D$5)*(lastsaleprod=$C11),0),3)}

Thank you
 
Upvote 0
Hi there, I am a newbie at these formulas. can you please let me know how I can include the iferror in this to remove #N/A. I would be extremely grateful, I have read and tried a few of these posts, however nothing is working for me. My formula is;

{=INDEX(lastsaledata,MATCH(1,(lastsalecust=$D$5)*(lastsaleprod=$C11),0),3)}

Thank you

Try:

{=IFERROR(INDEX(lastsaledata,MATCH(1,IF(lastsalecust=$D$5,IF(lastsaleprod=$C11,1)),0),3),"")}
 
Upvote 0
can you please let me know how I can include the iferror in this to remove #N/A.

{=INDEX(lastsaledata,MATCH(1,(lastsalecust=$D$5)*(lastsaleprod=$C11),0),3)}
Like this...

=IFERROR(INDEX(lastsaledata,MATCH(1,(lastsalecust=$D$5)*(lastsaleprod=$C11),0),3),"")

Still array entered.
 
Upvote 0

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