get rid of #N/A in a VLOOKUP

G

Guest

I need to replace the #N/A values to be blank within a VLOOKUP formula. How
do I do this?

I've tried the following but excel doesn't seem to like it:

=IF(ISBLANK(VLOOKUP($A6,'Sept 9'!$A$1:$U$47,14,FALSE),"",(VLOOKUP($A6,'Sept
9'!$A$1:$U$47,14,FALSE))
 
G

Guest

Hi,
You are missing a closing parens in the formula and I usually use ISERROR.

=IF(ISERROR(VLOOKUP($A6,'Sept 9'!$A$1:$U$47,14,FALSE)),"",VLOOKUP($A6,'Sept
9'!$A$1:$U$47,14,FALSE))

HTH
 
G

Guest

Replace ISBLANK with ISERROR. Also, it looks like you're missing the ending
) for your ISBLANK function (posting error perhaps).
 
Z

Zack Barresse

Hello,

The proper formula would be ...

=IF(ISNA(VLOOKUP($A6,'Sept 9'!$A$1:$U$47,14,0)),"",VLOOKUP($A6,'Sept
9'!$A$1:$U$47,14,0))

Although I would suggest downloading Laurent Longre's Morefunc.xll add-in.
Found here: http://xcell05.free.fr/english/index.html (english).

You could then shorten it to ...

=IF(SETV(VLOOKUP($A6,'Sept 9'!$A$1:$U$47,14,0)),"",GETV())

Makes it a little simpler to read/understand/troubleshoot.

HTH
 
G

Guest

Hi Zack,
Just my preference. ISNA accounts for the #NA error which is in the original
posting. I added the ISERROR suggestion to alert the poster that it would
cover the gamut of possible errors and is what I usually want to test.
 
Z

Zack Barresse

True. I just am of the thinking, "If the glove fits..." Ya know? I mean,
I can do almost anything with VBA, but that doesn't mean use it when a
simple worksheet function would do the trick, does it? I know we're talking
petty change here, I've just seen these semantics often times get blown up
on a proportionately bigger scale with the same priciples.

Take care.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top