ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   vlookup returning Errors (ISNA formula) (https://www.excelbanter.com/excel-worksheet-functions/171447-vlookup-returning-errors-isna-formula.html)

Nora[_2_]

vlookup returning Errors (ISNA formula)
 
Hi

When using the Vlookup statment on a cell where that cell content does not
exist in the vlookup range, how do you avoid the #NA or #value error?

I read previous posts and tried the ISNA formula but Excel will not accept
the formula- it stays at the change formula display. The formula I type is
below:

=IF(isna(VLOOKUP(A1,Sheet2!$A$1:$B$2,2,FALSE),"No" ,VLOOKUP(A1,Sheet2!$A$1:$B$2,2,0))

If anyone can help that would be much appreciated

Max

vlookup returning Errors (ISNA formula)
 
Think you're just missing a left/closing parens for the ISNA(..) part:
=IF(ISNA(VLOOKUP(A1,Sheet2!$A$1:$B$2,2,FALSE)),"No ",VLOOKUP(A1,Sheet2!$A$1:$B$2,2,0))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Nora" wrote:
When using the Vlookup statment on a cell where that cell content does not
exist in the vlookup range, how do you avoid the #NA or #value error?

I read previous posts and tried the ISNA formula but Excel will not accept
the formula- it stays at the change formula display. The formula I type is
below:

=IF(isna(VLOOKUP(A1,Sheet2!$A$1:$B$2,2,FALSE),"No" ,VLOOKUP(A1,Sheet2!$A$1:$B$2,2,0))

If anyone can help that would be much appreciated


Max

vlookup returning Errors (ISNA formula)
 
oops, errata, this:
.. a left/closing parens


should read as:
.. a right/closing parens

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

ShaneDevenshire

vlookup returning Errors (ISNA formula)
 
Hi Nora,

You didn't state what version of Excel you were using, if it is 2007 you can
use a simplier formula:

=IFERROR(VLOOKUP(A1,Sheet2!$A$1:$B$2,2,FALSE),"No" )

--
Cheers,
Shane Devenshire


"Nora" wrote:

Hi

When using the Vlookup statment on a cell where that cell content does not
exist in the vlookup range, how do you avoid the #NA or #value error?

I read previous posts and tried the ISNA formula but Excel will not accept
the formula- it stays at the change formula display. The formula I type is
below:

=IF(isna(VLOOKUP(A1,Sheet2!$A$1:$B$2,2,FALSE),"No" ,VLOOKUP(A1,Sheet2!$A$1:$B$2,2,0))

If anyone can help that would be much appreciated



All times are GMT +1. The time now is 07:23 PM.

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