error #N/A

G

Guest

I have a lookup formula that sometime returns a #N/A error. I would like a 0
to appear if the lookup result is n/a.

Here is my formula: =VLOOKUP(E3,'Source Pivot Master'!$A$3:$W$60000,7,FALSE)

Thank you.
 
G

Guest

In general, you can use
=IF(ISNA(expression),0,expression)
but that involves evaluating the expression twice. If the lookup table is
large, you may prefer to simply hide the error value with conditional
formatting.

Jerry
 
G

Guest

Thank you so much I appreciate your help.

Jerry W. Lewis said:
In general, you can use
=IF(ISNA(expression),0,expression)
but that involves evaluating the expression twice. If the lookup table is
large, you may prefer to simply hide the error value with conditional
formatting.

Jerry
 
D

David North

If you have Excel 2007, you can use the IFERROR function, which is much
neater. I'm not sure if 2007 was the first version to have IFERROR.
 
K

Ken Wright

Downside to using ISERROR is that other inadvertant errors will also be
hidden by use of that function. Jerry's ISNA solution is a safer one to
use.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------­------------------------------­----------------
It's easier to beg forgiveness than ask permission :)
------------------------------­------------------------------­----------------
 
K

Ken Wright

Yes it was

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------­------------------------------­----------------
It's easier to beg forgiveness than ask permission :)
------------------------------­------------------------------­----------------
 
K

Ken Wright

Unless of course there are other formulas depending on those cells...... Hi
Jerry :)

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------­------------------------------­----------------
It's easier to beg forgiveness than ask permission :)
------------------------------­------------------------------­----------------
 
D

Dove Red Robin

Many thanks.

But if you are using the result is referenced in another cell, this work well.
 

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