PC Review


Reply
Thread Tools Rate Thread

DSum criteria

 
 
Emece
Guest
Posts: n/a
 
      26th Nov 2009
I want to use the DSum function and I have the criteria in different ranges.
In A1:A2 I have one and in G1:G2 the other one. When I want to select them as
the criteria of the function, I try selecting the first range, then press
Ctrl and select the other range. But it doesn't work, Excel keeps telling
ther are too many arguments specified for the function. Which is the correct
way to select different ranges as criteria?

Thanks in advance.

Regards.
Emece.-
 
Reply With Quote
 
 
 
 
ddibble
Guest
Posts: n/a
 
      26th Nov 2009

Emece,

I think that you can just use a continuous range for your criteria as
long as all of the data in between is 'null'. So given your example
you would have your criteria range = A1:G2. But you need to be sure
that you don't have any values inbetween. I've attached an example.
The first box is the typical setup and the second one to the right
shows what it would look like if you pulled your second criteria over a
few columns. Hopefully you don't have anything inbetween the critieria.
If so, I suggest altering your spreadsheet slightly by either moving
the critiera cells closer to each other or clearing out anything in
between A1:G2.

-Duane


Emece;904159 Wrote:
> I want to use the DSum function and I have the criteria in different
> ranges.
> In A1:A2 I have one and in G1:G2 the other one. When I want to select
> them as
> the criteria of the function, I try selecting the first range, then
> press
> Ctrl and select the other range. But it doesn't work, Excel keeps
> telling
> ther are too many arguments specified for the function. Which is the
> correct
> way to select different ranges as criteria?
>
> Thanks in advance.
>
> Regards.
> Emece.-



+-------------------------------------------------------------------+
|Filename: dsum example.JPG |
|Download: http://www.excelbanter.com/attachment.php?attachmentid=132|
+-------------------------------------------------------------------+



--
ddibble
 
Reply With Quote
 
AdamV
Guest
Posts: n/a
 
      26th Nov 2009
It depends what is in B1:F2
If those cells contain other valid field headings and criteria (values)
then you are stuck - maybe reproduce your critera somewhere else (point
back to the originals eg =A1, =A2 etc)

If they contain:
- nothing
- valid headings but no values
- text that are not valid headings, with or without values
then these will simply be ignored and you could use A1:G2 as your
criteria range.

Hope this helps

Emece wrote:
> I want to use the DSum function and I have the criteria in different ranges.
> In A1:A2 I have one and in G1:G2 the other one. When I want to select them as
> the criteria of the function, I try selecting the first range, then press
> Ctrl and select the other range. But it doesn't work, Excel keeps telling
> ther are too many arguments specified for the function. Which is the correct
> way to select different ranges as criteria?
>
> Thanks in advance.
>
> Regards.
> Emece.-

 
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
dsum with 2 criteria Simon Microsoft Access 1 24th Feb 2010 11:35 PM
HOW TO USE DSUM WITH MORE THAN ONE CRITERIA =?Utf-8?B?TWljaGFlbCBILk0uTWlraGFpbA==?= Microsoft Excel New Users 1 23rd May 2006 09:42 AM
Dsum with two criteria =?Utf-8?B?bS5zYXJ0ZWxl?= Microsoft Access Forms 1 11th Apr 2006 08:41 PM
DSum Criteria =?Utf-8?B?TUggVUs=?= Microsoft Access VBA Modules 1 5th Jan 2006 11:59 AM
DSum Criteria michael c Microsoft Access Queries 1 20th Nov 2003 03:38 AM


Features
 

Advertising
 

Newsgroups
 


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