ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Vlookup and returning #n/a (https://www.excelbanter.com/excel-worksheet-functions/8273-vlookup-returning-n.html)

Cathrine

Vlookup and returning #n/a
 
is there a way to return a zero or blank in the place of #n/a in a vlookup
result that is FALSE?

Bob Phillips

=IF(ISNA(vlookup_formula),0,vlookup_formula)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Cathrine" wrote in message
...
is there a way to return a zero or blank in the place of #n/a in a vlookup
result that is FALSE?




Arvi Laanemets

Hi

=IF(ISERROR(VLOOKUP(...)),"",VLOOKUP(...))
or
=IF(ISNA(VLOOKUP(...)),"",VLOOKUP(...))
(instead "" you can use 0 as return value for error too)


--
Arvi Laanemets
(When sending e-mail, use address arvil<Attarkon.ee)


"Cathrine" wrote in message
...
is there a way to return a zero or blank in the place of #n/a in a vlookup
result that is FALSE?




Cathrine

Thank you both!!

"Arvi Laanemets" wrote:

Hi

=IF(ISERROR(VLOOKUP(...)),"",VLOOKUP(...))
or
=IF(ISNA(VLOOKUP(...)),"",VLOOKUP(...))
(instead "" you can use 0 as return value for error too)


--
Arvi Laanemets
(When sending e-mail, use address arvil<Attarkon.ee)


"Cathrine" wrote in message
...
is there a way to return a zero or blank in the place of #n/a in a vlookup
result that is FALSE?






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

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