#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 82
Default DSum criteria

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.-
  #2   Report Post  
Junior Member
 
Posts: 6
Default

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


Quote:
Originally Posted by Emece View Post
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.-
Attached Images
 
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default DSum criteria

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
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 - criteria in different row than value to sum Smangler Excel Worksheet Functions 2 July 15th 09 04:21 PM
DSUM criteria Edward Excel Worksheet Functions 3 July 9th 07 04:19 PM
DSum criteria Troubled Excel Worksheet Functions 2 November 8th 06 04:22 AM
HOW TO USE DSUM WITH MORE THAN ONE CRITERIA Michael H.M.Mikhail New Users to Excel 1 May 23rd 06 09:42 AM
Using DSUM with several criteria matthoffman33 Excel Worksheet Functions 2 May 6th 06 05:46 PM


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

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

About Us

"It's about Microsoft Excel"