Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Ignoring #N/A in a DSUM function

I have a column to add that contains some #N/As. I'm using a dsum function
and need to be abke to add the column while ignaring the #N/As. The dsum
formula I'm using is:

=DSUM($A20:$AS1998,33,$A2002:$A2003)
--
Robert K
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 434
Default Ignoring #N/A in a DSUM function

hi, Robert !

I have a column to add that contains some #N/As.
I'm using a dsum function and need to be abke to add the column while ignaring the #N/As.
The dsum formula I'm using is: =DSUM($A20:$AS1998,33,$A2002:$A2003)


"my" dsum(... function ignores error values (#name?, #value!, #div/0!, #n/a!, etc.)

could you be a little more specific on "what" you have/get/expect/... -?-
regards,
hector.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Ignoring #N/A in a DSUM function

I don't understand you response. Let me describe my problem in more detail.
I have a table with multiple columns, column D has 1 of 3 entries, OE, AC&I
or Other. The column I am adding has either a number or #N/A (the entry
fcomes from another spredsheet which will show #N/A if not updated). In the
example I've given the database is from A20 to AS1998, 33 is the column I am
adding and A2002:A2003 is the heading Funding Source and under that OE. I
need to add the entire column 33 but get an answer of #N/A if even 1 entry is
#N/A. I have to add all the numbers in column 33 that have OE in column D
which is why I,m using the dsum function. How can I add column 33 and ignore
the #N/As so I get a numerical sum.

Thanks
--
Robert K


"RobertK" wrote:

I have a column to add that contains some #N/As. I'm using a dsum function
and need to be abke to add the column while ignaring the #N/As. The dsum
formula I'm using is:

=DSUM($A20:$AS1998,33,$A2002:$A2003)
--
Robert K

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Ignoring #N/A in a DSUM function

Also the #N/A in the cells is a return from a vlookup function. If that helps.
--
Robert K


"Héctor Miguel" wrote:

hi, Robert !

I have a column to add that contains some #N/As.
I'm using a dsum function and need to be abke to add the column while ignaring the #N/As.
The dsum formula I'm using is: =DSUM($A20:$AS1998,33,$A2002:$A2003)


"my" dsum(... function ignores error values (#name?, #value!, #div/0!, #n/a!, etc.)

could you be a little more specific on "what" you have/get/expect/... -?-
regards,
hector.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Ignoring #N/A in a DSUM function

You should change the vlookup formulas to trap for the #N/A to start with.

=IF(ISNA(VLOOKUP(G1,$C$1:$F$31,2,FALSE)),"",VLOOKU P(G1,$C$1:$F$31,2,FALSE))

Then your DSUM should work properly.


Gord Dibben MS Excel MVP

On Sat, 3 May 2008 08:14:00 -0700, RobertK
wrote:

Also the #N/A in the cells is a return from a vlookup function. If that helps.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Ignoring #N/A in a DSUM function

Yes, that works but by doing that I add 1.2mb to the size of my file. That
is why I'm trying to get rid of the #N/As in the dsum function of which I
have only 14 cells to contend with. Thanks.
--
Robert K


"Gord Dibben" wrote:

You should change the vlookup formulas to trap for the #N/A to start with.

=IF(ISNA(VLOOKUP(G1,$C$1:$F$31,2,FALSE)),"",VLOOKU P(G1,$C$1:$F$31,2,FALSE))

Then your DSUM should work properly.


Gord Dibben MS Excel MVP

On Sat, 3 May 2008 08:14:00 -0700, RobertK
wrote:

Also the #N/A in the cells is a return from a vlookup function. If that helps.



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 272
Default Ignoring #N/A in a DSUM function

Maybe try changing the criteria range to A2002:B2003 with

B2002: heading for the numbers to sum (column AG)
B2003: <#N/A

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Ignoring #N/A in a DSUM function

Yes, that worked. Thank you very much.
--
Robert K


"Lori" wrote:

Maybe try changing the criteria range to A2002:B2003 with

B2002: heading for the numbers to sum (column AG)
B2003: <#N/A

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
DSUM function Kimmer New Users to Excel 13 April 22nd 08 05:42 PM
DSUM function Kimmer New Users to Excel 4 April 19th 08 09:14 PM
Using the function DSUM Tom Excel Discussion (Misc queries) 7 September 26th 07 11:43 PM
DSUM function Debra Lisa Excel Worksheet Functions 8 August 29th 07 03:24 PM
DSum function Mark Excel Worksheet Functions 2 November 17th 04 02:47 PM


All times are GMT +1. The time now is 07:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"