Hello Folks
When I use VLOOKUP and the (lookup value) is blank it shows #N/A
How to avoid such error in the formula especially when I use letters not numbers in the (lookup value)
Many thanks
Hello Folks
When I use VLOOKUP and the (lookup value) is blank it shows #N/A
How to avoid such error in the formula especially when I use letters not numbers in the (lookup value)
Many thanks
Last edited by ahmedmido; 08-14-2010 at 08:47 AM.
Check for a value before allowing the formula to proceed:
=IF(A1 = "", "", VLOOKUP(A1, Sheet2!A:B, 2, 0))
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
Many Thanks Dear JBeaucaire :-)
If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks