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

Tip: Looking for answers? Try searching our database.

If Vlookup returns error enter 0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Midwest User - 28 Mar 2006 16:51 GMT
I have to  build a lot of logic in to trap errors that are returned with V or
H lookups and it would be nice to be able to just return a 0 if the lookup is
an error.

If there is a way to do this I am not aware of it.
Bernard Liengme - 28 Mar 2006 17:11 GMT
=IF(ISERROR(your-lookup-formula),0,your-lookup-formula)
=IF(ISNA(your-lookup-formula),0,your-lookup-formula)
best wishes
Signature

Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

>I have to  build a lot of logic in to trap errors that are returned with V
>or
[quoted text clipped - 13 lines]
>
> http://www.microsoft.com/office/community/en-us/default.mspx?mid=a4761563-5643-4
23c-9360-526982bc2395&dg=microsoft.public.excel.worksheet.functions
 
barrfly - 28 Mar 2006 17:14 GMT
try = if(iserror(vlookup(a1,range,2)),0,vlookup(a1,range,2)) or
=if(isna(vlookup(a1,range,2)),0,vlookup(a1,range,2))

Signature

barrfly

Excel User - Energy markets

 
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.