ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to convert VLOOPUP error value #NA to 0? (https://www.excelbanter.com/excel-worksheet-functions/73913-how-convert-vloopup-error-value-na-0-a.html)

Rex

How to convert VLOOPUP error value #NA to 0?
 
Trying to sum a column that was built using VLOOKUP. Several of the values
returned in the column are #NA. The column will not sum. How can we write
the VLOOKUP formula to return error values = to 0 rather than #NA?

bpeltzer

How to convert VLOOPUP error value #NA to 0?
 
Embed your vlookup inside an if. Instead of =vlookup(...), use
=if(isna(vlookup(...)),0,vlookup(...))

"Rex" wrote:

Trying to sum a column that was built using VLOOKUP. Several of the values
returned in the column are #NA. The column will not sum. How can we write
the VLOOKUP formula to return error values = to 0 rather than #NA?


RagDyeR

How to convert VLOOPUP error value #NA to 0?
 
You could change the Sum() formula:

=SUMIF(A1:A20,"<#N/A")
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Rex" wrote in message
...
Trying to sum a column that was built using VLOOKUP. Several of the values
returned in the column are #NA. The column will not sum. How can we write
the VLOOKUP formula to return error values = to 0 rather than #NA?



Pete_UK

How to convert VLOOPUP error value #NA to 0?
 
Another way - adjust your VLOOKUP formulae to the following:

=IF(ISNA(VLOOKUP formula),0,VLOOKUP formula)

and copy this down.

Hope this helps.

Pete


Ken Wright

How to convert VLOOPUP error value #NA to 0?
 
General soln is

=IF(ISNA(Your_Formula),0,Your_Formula)

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"Rex" wrote in message
...
Trying to sum a column that was built using VLOOKUP. Several of the
values
returned in the column are #NA. The column will not sum. How can we
write
the VLOOKUP formula to return error values = to 0 rather than #NA?





All times are GMT +1. The time now is 01:35 PM.

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