ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   if a vlookup returns "#n/a" how can I make that zero? (https://www.excelbanter.com/excel-worksheet-functions/107920-if-vlookup-returns-n-how-can-i-make-zero.html)

sylvesma

if a vlookup returns "#n/a" how can I make that zero?
 
if a vlookup returns "#n/a" how can I make that cell show a zero instead of
an "n/a" but return a value when it is not n/a?

Toppers

if a vlookup returns "#n/a" how can I make that zero?
 
=if(ISNA(VLOOKUP(.....)),0,VLOOKUP(......))

HTH

"sylvesma" wrote:

if a vlookup returns "#n/a" how can I make that cell show a zero instead of
an "n/a" but return a value when it is not n/a?


Dave F

if a vlookup returns "#n/a" how can I make that zero?
 
IF(ISNA(VLOOKUP(......)),0,VLOOKUP(....))

IF vlookup returns #N/A, THEN 0, ELSE do the vlookup and return its value.

Dave
--
Brevity is the soul of wit.


"sylvesma" wrote:

if a vlookup returns "#n/a" how can I make that cell show a zero instead of
an "n/a" but return a value when it is not n/a?


Cynthia

if a vlookup returns "#n/a" how can I make that zero?
 
Is it possible to add or sum up two or more of these vlookup values? If yes,
can you tell me how?

Thanks!

"Toppers" wrote:

=if(ISNA(VLOOKUP(.....)),0,VLOOKUP(......))

HTH

"sylvesma" wrote:

if a vlookup returns "#n/a" how can I make that cell show a zero instead of
an "n/a" but return a value when it is not n/a?


David Biddulph[_2_]

if a vlookup returns "#n/a" how can I make that zero?
 
If you want to add the results of 2 lookups, then use
=VLOOKUP(first_lookup_formula)+VLOOKUP(second_look up_formula)

If you want to trap for NA() in each as shown below, then use
=IF(first_if_formula)+IF(second_if_formula)
--
David Biddulph

"Cynthia" wrote in message
...
Is it possible to add or sum up two or more of these vlookup values? If
yes,
can you tell me how?

Thanks!

"Toppers" wrote:

=if(ISNA(VLOOKUP(.....)),0,VLOOKUP(......))

HTH

"sylvesma" wrote:

if a vlookup returns "#n/a" how can I make that cell show a zero
instead of
an "n/a" but return a value when it is not n/a?





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

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