Formatting the Results of VLOOKUP

G

Guest

When I use the VLOOKUP function with a Range_Lookup of False, if the function
cannot find an exact match, it returns the result: #N/A, which is correct.
What I would like to know is, can I format that cell so that if the result is
#N/A, then the cell displays as blank or empty? I know I can format a 0
(zero) value to display an empty cell but can I format a text one like that,
as well?

Thank you.
 
J

Jason Morin

You can use COUNTIF to see if the value exists. If so,
use VLOOKUP. For example:

=IF(COUNTIF(A:A,F1),VLOOKUP(F1,A:C,3,0),"")

HTH
Jason
Atlanta, GA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top