![]() |
If Vlookup returns error enter 0
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. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/office/comm...et.f unctions |
If Vlookup returns error enter 0
=IF(ISERROR(your-lookup-formula),0,your-lookup-formula)
=IF(ISNA(your-lookup-formula),0,your-lookup-formula) best wishes -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "Midwest User" <Midwest wrote in message ... 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. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/office/comm...et.f unctions |
If Vlookup returns error enter 0
try = if(iserror(vlookup(a1,range,2)),0,vlookup(a1,range ,2)) or =if(isna(vlookup(a1,range,2)),0,vlookup(a1,range,2 )) -- barrfly Excel User - Energy markets ------------------------------------------------------------------------ barrfly's Profile: http://www.excelforum.com/member.php...fo&userid=4141 View this thread: http://www.excelforum.com/showthread...hreadid=527171 |
All times are GMT +1. The time now is 01:17 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com