ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Get rid of #N/A when using a vlookup (https://www.excelbanter.com/excel-worksheet-functions/163578-get-rid-n-when-using-vlookup.html)

jc

Get rid of #N/A when using a vlookup
 
In Column A i've got a drop down box of Customer Names and in column B i have
a vlookup to give me the sales rep who calls on those customers in column A.
When column A is not filled out, column B shows #N/A. Is there a way to
tell Excel to leave the cell blank until Column A is filled out?

Niek Otten

Get rid of #N/A when using a vlookup
 
=IF(ISNA(YourFormula),"",YourFormula)

In Excel 2007:

=IFERROR(YourFormula,"")


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"JC" wrote in message ...
| In Column A i've got a drop down box of Customer Names and in column B i have
| a vlookup to give me the sales rep who calls on those customers in column A.
| When column A is not filled out, column B shows #N/A. Is there a way to
| tell Excel to leave the cell blank until Column A is filled out?



T. Valko

Get rid of #N/A when using a vlookup
 
One way:

=IF(A1="","",VLOOKUP(A1,..............))

--
Biff
Microsoft Excel MVP


"JC" wrote in message
...
In Column A i've got a drop down box of Customer Names and in column B i
have
a vlookup to give me the sales rep who calls on those customers in column
A.
When column A is not filled out, column B shows #N/A. Is there a way to
tell Excel to leave the cell blank until Column A is filled out?





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

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