LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default How to replace "#N/A" w "0"when vlookup couldn't find the match?

Did you try it? That won't work at all, since ISERR will always return
FALSE when passed #N/A!

From XL Help:

ISERR
Returns the logical value TRUE if value refers to any error value
except #N/A; otherwise it returns FALSE.



One could use ISERROR(), which does trap #N/A, but that would mask other
errors as well. Better to use ISNA

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

though out of sheer cussedness I prefer the slightly more efficient

=IF(ISNA(MATCH(A1,J:J,FALSE)),"",VLOOKUP(A1,J:K,2, FALSE))

In article ,
LarryLL wrote:

Holly Wrote:
I try not to show "#N/A" when my vloopup couldn't find the match on the
report.


One way is to use the ISERR function.

IF(ISERR(VLOOKUP(...),0,VLOOKUP(...))

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find comment replace cell value [email protected] Excel Discussion (Misc queries) 3 July 5th 06 09:42 PM
find and replace macro strange behaviour Nicawette Excel Discussion (Misc queries) 3 June 13th 06 08:49 PM
How do I find and replace the " mawmawball Excel Discussion (Misc queries) 8 December 22nd 05 01:19 AM
Find and Replace blakrapter Excel Worksheet Functions 3 December 15th 05 12:25 AM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM


All times are GMT +1. The time now is 03:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"