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 / March 2006

Tip: Looking for answers? Try searching our database.

Using Vlookup wheb value missing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nir020 - 20 Mar 2006 17:18 GMT
How can you when using vlookup return a value of 0 rather than #N/A when the
lookup value is not present in the table array?

Thanks

Nick
Ardus Petus - 20 Mar 2006 17:42 GMT
=IFNA(Vlookup(),0,Vlookup())

I fear this is the only way

HTH
--
AP

> How can you when using vlookup return a value of 0 rather than #N/A when the
> lookup value is not present in the table array?
>
> Thanks
>
> Nick
Trevor Shuttleworth - 20 Mar 2006 17:44 GMT
Nick

=IF(ISNA(VLOOKUP(...)),0,VLOOKUP(...))

Regards

Trevor

> How can you when using vlookup return a value of 0 rather than #N/A when
> the
[quoted text clipped - 3 lines]
>
> Nick
Jim Thomlinson - 20 Mar 2006 17:46 GMT
My prefered way is to use an if function with countif to determine if the
vallue being looked up exists, something like this...

=IF(COUNTIF($D$1:$D$10, A1)=0,0, VLOOKUP(A1, $D$1:$E$10, 2, FALSE))
Signature

HTH...

Jim Thomlinson

> How can you when using vlookup return a value of 0 rather than #N/A when the
> lookup value is not present in the table array?
>
> Thanks
>
> Nick
Tom Ogilvy - 20 Mar 2006 17:51 GMT
=if(iserror(match(lookupvalue,firstcolumnofrange,0)),0,vlookup(lookupvalue,range,2,false))

Signature

Regards,
Tom Ogilvy

> How can you when using vlookup return a value of 0 rather than #N/A when the
> lookup value is not present in the table array?
>
> Thanks
>
> Nick
Toppers - 20 Mar 2006 17:51 GMT
Use:

C1        <lookup value>
A1:B20 <lookup table>

=IF(ISERROR(VLOOKUP(C1,A1:B20,2,FALSE)),0,VLOOKUP(C1,A1:B20,2,FALSE))

HTH

> How can you when using vlookup return a value of 0 rather than #N/A when the
> lookup value is not present in the table array?
>
> Thanks
>
> Nick
 
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.