ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   can we hide #N/A display because of VLOOKUP (https://www.excelbanter.com/excel-programming/288746-can-we-hide-n-display-because-vlookup.html)

___Zoom[_2_]

can we hide #N/A display because of VLOOKUP
 
How can we hide displaying "#N/A" false indicator becasue of the normal
function of VLOOKUP formula in a cell without disturbing its operation?.

My formula stands like this at Sheet1!A1:
=VLOOKUP(A1;Sheet2!A:C;2;FALSE)

and when Sheet1!A1 is empty naturally I get a "#N/A" display.
I want NO error messages displayed when the cell is empty.
Can anyone comment?
TIA





Norman Harker

can we hide #N/A display because of VLOOKUP
 
Hi Zoom!

Try:

=IF(ISNA(VLOOKUP(A1;Sheet2!A:C;2;FALSE)),"",VLOOKU P(A1;Sheet2!A:C;2;FA
LSE))

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia

Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.



tolgag[_10_]

can we hide #N/A display because of VLOOKUP
 
You can write a custom function, which calls VLookup itself with the
parameter you gave and check if it returns the "N/A".

The syntax is as follows :

Application.WorksheetFunction.VLookup(....)


---
Message posted from http://www.ExcelForum.com/


Norman Harker

can we hide #N/A display because of VLOOKUP
 
Hi Zoom!

Same answer as over in programming.

Try:

=IF(ISNA(VLOOKUP(A1;Sheet2!A:C;2;FALSE)),"",VLOOKU P(A1;Sheet2!A:C;2;FA
LSE))

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia

Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.



tolgag[_11_]

can we hide #N/A display because of VLOOKUP
 
The idea of Norman is not bad for a quick solution..

--
Message posted from http://www.ExcelForum.com


Bob Phillips[_6_]

can we hide #N/A display because of VLOOKUP
 
Zoom,

A number of way

=IF(ISNA(VLOOKUP(A1;Sheet2!A:C;2;FALSE)),"",VLOOKU P(A1;Sheet2!A:C;2;FALSE))

will catch #N/A

=IF(ISERROR(VLOOKUP(A1;Sheet2!A:C;2;FALSE)),"",VLO OKUP(A1;Sheet2!A:C;2;FALSE
))

will catch any error, or if you just want to test A1

=IF(A1="","",VLOOKUP(A1;Sheet2!A:C;2;FALSE))



--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"___Zoom" wrote in message
...
How can we hide displaying "#N/A" false indicator becasue of the normal
function of VLOOKUP formula in a cell without disturbing its operation?.

My formula stands like this at Sheet1!A1:
=VLOOKUP(A1;Sheet2!A:C;2;FALSE)

and when Sheet1!A1 is empty naturally I get a "#N/A" display.
I want NO error messages displayed when the cell is empty.
Can anyone comment?
TIA







___Zoom[_2_]

can we hide #N/A display because of VLOOKUP
 
Thanks to Norman, tolgag and Bob.


"___Zoom" wrote in message
...
How can we hide displaying "#N/A" false indicator becasue of the normal
function of VLOOKUP formula in a cell without disturbing its operation?.

My formula stands like this at Sheet1!A1:
=VLOOKUP(A1;Sheet2!A:C;2;FALSE)

and when Sheet1!A1 is empty naturally I get a "#N/A" display.
I want NO error messages displayed when the cell is empty.
Can anyone comment?
TIA








All times are GMT +1. The time now is 10:34 AM.

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