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 / Programming / September 2007

Tip: Looking for answers? Try searching our database.

removing #NA from the list

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neall - 18 Sep 2007 18:44 GMT
I am pulling in data from a DB, and in one of the rows I am using a VLOOKUP
which works perfectly, however with the expectation of added growth and to
not have to worry about adding this syntax later on in the project I have
cells that have no data in them the the VLOOKUP uses, so the results are
showing #N/A

Is there anyway I can make it so those results do not show?

here is the syntaxt

=VLOOKUP(YYY!B17,'XX-XX'!A17:F166,2,FALSE)

the cell where the VLOOKUP resides that does not have data in the cells it
is looking up comes back with a #N/A display on the spreadsheet and its not
"purdy"

Thanks in advance
Signature

Neall

Jim Thomlinson - 18 Sep 2007 19:08 GMT
Try this which checks for a match prior to doing the lookup...

=if(countif('XX-XX'!A17:A166, YYY!B17) = 0, "",
VLOOKUP(YYY!B17,'XX-XX'!A17:F166,2,FALSE))

Signature

HTH...

Jim Thomlinson

> I am pulling in data from a DB, and in one of the rows I am using a VLOOKUP
> which works perfectly, however with the expectation of added growth and to
[quoted text clipped - 13 lines]
>
> Thanks in advance
Neall - 19 Sep 2007 16:46 GMT
Thanks, it works for removing the #N/A but it doesn't display the result if
the criteria is matched.

Any suggestions?

Signature

Neall

> Try this which checks for a match prior to doing the lookup...
>
[quoted text clipped - 18 lines]
> >
> > Thanks in advance
 
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.