ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Return blank cell if value you vlookup is not on pivot (https://www.excelbanter.com/excel-worksheet-functions/145307-return-blank-cell-if-value-you-vlookup-not-pivot.html)

Franky88

Return blank cell if value you vlookup is not on pivot
 
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. Valko

Return blank cell if value you vlookup is not on pivot
 
One way:

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

Biff

"Franky88" wrote in message
...
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!





All times are GMT +1. The time now is 05:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com