Return blank cell if value you vlookup is not on pivot

G

Guest

This is similar to other questions I've seen posted but unfortunately I can't
get my formula to work. If the value I lookup does not have a value on the
pivot table I'm searching, I'd like to return a blank cell instead of #N/A in
the cell. The vlookup formula I'm using is: =VLOOKUP($B2,'Vacay
Pivot'!$A$5:$G$1788,2,FALSE) I'm by no means great in excel so if anyone can
offer advice as to how to use an if statement with this lookup formula to
return a blank cell instead of #N/A I would be SOOO grateful.
Thank you!
 
T

T. Valko

One way:

=IF(COUNTIF('Vacay Pivot'!$A$5:$A$1788,$B2),VLOOKUP($B2,'Vacay
Pivot'!$A$5:$G$1788,2,0),"")

Biff
 

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