#1   Report Post  
paula smith
 
Posts: n/a
Default "Vlook up + IF"

I have created a function "vlook up" which worked fine,
however I would like to add the function "if" to avoid
have some cells N/A instead of a number (zero). How I
could do that?
thanks in advance for your help,
Paula


  #2   Report Post  
tjtjjtjt
 
Posts: n/a
Default

One way:

=IF(ISERROR(yourVLOOKUPfunction),"",yourVLOOKUPfun ction)

This would make the cell look empty instead of showing the error. It would
not fix the error, though.

tj

"paula smith" wrote:

I have created a function "vlook up" which worked fine,
however I would like to add the function "if" to avoid
have some cells N/A instead of a number (zero). How I
could do that?
thanks in advance for your help,
Paula



  #3   Report Post  
Rob
 
Posts: n/a
Default

Paula,
using if(isna would trap NAs

=IF(ISNA((VLOOKUP(A2,A3:B6,2,FALSE))),"",VLOOKUP(A 2,A3:B6,2,FALSE))

Regards, Rob

"paula smith" wrote in message
...
I have created a function "vlook up" which worked fine,
however I would like to add the function "if" to avoid
have some cells N/A instead of a number (zero). How I
could do that?
thanks in advance for your help,
Paula




Reply
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
How do I use drop down list selections/values in a vlook up formu. CL Excel Discussion (Misc queries) 2 January 19th 05 10:39 PM


All times are GMT +1. The time now is 02:37 AM.

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

About Us

"It's about Microsoft Excel"