PC Review


Reply
Thread Tools Rate Thread

How to convert VLOOPUP error value #NA to 0?

 
 
=?Utf-8?B?UmV4?=
Guest
Posts: n/a
 
      25th Feb 2006
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?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?YnBlbHR6ZXI=?=
Guest
Posts: n/a
 
      25th Feb 2006
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?

 
Reply With Quote
 
RagDyeR
Guest
Posts: n/a
 
      25th Feb 2006
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" <(E-Mail Removed)> wrote in message
news:A0A40C8F-5930-4FA7-B0A5-(E-Mail Removed)...
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?


 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      25th Feb 2006
Another way - adjust your VLOOKUP formulae to the following:

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

and copy this down.

Hope this helps.

Pete

 
Reply With Quote
 
Ken Wright
Guest
Posts: n/a
 
      26th Feb 2006
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" <(E-Mail Removed)> wrote in message
news:A0A40C8F-5930-4FA7-B0A5-(E-Mail Removed)...
> 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?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: VLoopUp/ DLoopUp Vs Ado.recordset Pros & Cons Klatuu Microsoft Access Form Coding 1 7th Oct 2009 02:31 PM
vloopup and data vadilation vcff Microsoft Excel Misc 2 9th May 2009 11:06 AM
Help with my VBA Vloopup jln via OfficeKB.com Microsoft Excel Programming 1 1st Nov 2006 06:54 PM
VLOOPUP Fran Microsoft Excel Discussion 6 8th Jun 2006 08:12 AM
Re: VLOOPUP Causing Damsel Distress SP Microsoft Excel Worksheet Functions 1 17th Jul 2003 07:19 PM


Features
 

Advertising
 

Newsgroups
 


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