ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I replace a return value of #N/A in a vlookup with zero? (https://www.excelbanter.com/excel-worksheet-functions/52754-how-do-i-replace-return-value-n-vlookup-zero.html)

marketingman

How do I replace a return value of #N/A in a vlookup with zero?
 
Rather than #N/A being returned from a lookup for a value that is not in the
lookup table can I replace the returned #N/A with a zero?

Without being able to do this I am unable sum the returned values.

CLR

How do I replace a return value of #N/A in a vlookup with zero?
 
IF(ISNA(YourLookupFormula),0,YourLookupFormula)

Vaya con Dios,
Chuck, CABGx3



"marketingman" wrote:

Rather than #N/A being returned from a lookup for a value that is not in the
lookup table can I replace the returned #N/A with a zero?

Without being able to do this I am unable sum the returned values.


mbarron

How do I replace a return value of #N/A in a vlookup with zero?
 
Try this:

If(isna(vlookup(your lookup)),0,vlookup(your lookup))


Ashish Mathur

How do I replace a return value of #N/A in a vlookup with zero?
 
Hi,

To sum the values ignoring the error values, you may want to use the
following formula. You need not alter your vlookup formula

In range A1:A4, you have the following

1
2
3
#DIV/0!

In cell A6, array enter (Ctrl+Shift+Enter) the following formula

SUM(IF(NOT(ISERROR(A1:A4)),A1:A4))

Regards,

Ashish Mathur


"marketingman" wrote:

Rather than #N/A being returned from a lookup for a value that is not in the
lookup table can I replace the returned #N/A with a zero?

Without being able to do this I am unable sum the returned values.


Aladin Akyurek

How do I replace a return value of #N/A in a vlookup with zero?
 
1.

=SUM(Range,"<#N/A")

2. If you're sending the workbook across countries...

=SUMIF(Range,"<"&NA())

marketingman wrote:
Rather than #N/A being returned from a lookup for a value that is not in the
lookup table can I replace the returned #N/A with a zero?

Without being able to do this I am unable sum the returned values.



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

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