Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2008

Tip: Looking for answers? Try searching our database.

error handling-need to get rid of a value returned as #N/A

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gluefoot - 05 Feb 2008 22:17 GMT
I'm trying to grab information from another worksheet but when the line I'm
referencing on the other worksheet isn't available it returns the value #N/A,
which is fine but that's not what I was to display, I just want an empty cell
when it cannot find that info on the other worksheet. Here's an example of
what I'm trying to do....

=VLOOKUP(A2, names, 5, FALSE)

let's say A2 is Bob, if excel cannot find Bob in the "names" array it
returns the value #N/A. I cannot figure out how to make it return a value
that I would rather use. I've been playing with ERROR.TYPE but I can't seem
to get that to work for me because if VLOOKUP actually returns a value I get
another #N/A.
T. Valko - 05 Feb 2008 22:36 GMT
Try this:

=IF(ISNA(VLOOKUP(A2,names,5,0)),"",VLOOKUP(A2,names,5,0))

Signature

Biff
Microsoft Excel MVP

> I'm trying to grab information from another worksheet but when the line
> I'm
[quoted text clipped - 14 lines]
> get
> another #N/A.
Michelle - 05 Feb 2008 22:40 GMT
You can use the ISNA function nested in an IF statement...

If(ISNA(VLOOKUP(A2, names, 5, FALSE)),"",VLOOKUP(A2, names, 5, FALSE))

Hope this helps.

Signature

Cheers,
Michelle
"Anyone who says he can see through women is missing a lot."  Groucho Marx

> I'm trying to grab information from another worksheet but when the line I'm
> referencing on the other worksheet isn't available it returns the value #N/A,
[quoted text clipped - 9 lines]
> to get that to work for me because if VLOOKUP actually returns a value I get
> another #N/A.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.