ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   N/A Error (https://www.excelbanter.com/excel-worksheet-functions/96733-n-error.html)

Alvin

N/A Error
 
How can you prevent getting a N/A error message when using a lookup formula
if the reference cell is blank?

Peo Sjoblom

N/A Error
 
=IF(A2="","",VLOOKUP(A2,Table,2,0))

and if there is no match

=IF(A2="","",IF(ISNA(VLOOKUP(A2,Table,2,0)),"",VLO OKUP(A2,Table,2,0)))

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"Alvin" wrote in message
...
How can you prevent getting a N/A error message when using a lookup
formula
if the reference cell is blank?





All times are GMT +1. The time now is 10:53 PM.

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