Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default DSUM I think

I have a need to sum data from a table on a different sheet in a
workbook but I need it to only return data that matches multiple
criteria.

The table has multiple columns but the 3 important columns are A, E, &
H.

I have column headers A=FIN, E=LDC, and H=OT

On the report page I am assembling I have a column (A) which includes
Finance Numbers.

I need a formula that will search the SATURDAY tab of the workbook
which contains data through line 35000 and sum the figures in the OT
column only if certain criteria in the FIN column and the LDC column
match.

I have the following LDC criteria already established in S1:T3

LDC LDC
=2000 <=2999
=9200 <=9200


The formula I already have is:

=DSUM(SATURDAY!$A$1:$J$35000,"OT",$S$1:$T$3)

The problem is that this formula does not filter the data for finance
number relevance, it only filters based on the LDC criteria I
established in S1:T3.

How do I add the 2nd criteria to match the value I have in my report
column A with the values in the SATURDAY tab Column A "FIN".

I need my results filtered on both criteria.

Thanks in advance for any assistance you can provide.

Don
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default DSUM I think


Can you post a workbook with sample data?


--
mdmackillop
------------------------------------------------------------------------
mdmackillop's Profile: http://www.thecodecage.com/forumz/member.php?userid=113
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=69233

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,069
Default DSUM I think

Add another column to your criteria section, titled FIN. In this column pull
in the values you need to match from the report sheet. You will have to
repeat the LDC criteria for each FIN value in the criteria section. For
example, using your LDC criteria, if the FIN values to match are AAA, BBB,
and XXX, your criteria section might look like this:

FIN LDC LDC
AAA =2000 <=2999
AAA =9200 <=9200
BBB =2000 <=2999
BBB =9200 <=9200
XXX =2000 <=2999
XXX =9200 <=9200

and your DSUM formula might be
=DSUM(SATURDAY!$A$1:$J$35000,"OT",$S$1:$U$7)

I don't understand the second line of your LDC criteria. =9200 AND <=9200
will only return values exactly equal to 9200.

Hope this helps,

Hutch

" wrote:

I have a need to sum data from a table on a different sheet in a
workbook but I need it to only return data that matches multiple
criteria.

The table has multiple columns but the 3 important columns are A, E, &
H.

I have column headers A=FIN, E=LDC, and H=OT

On the report page I am assembling I have a column (A) which includes
Finance Numbers.

I need a formula that will search the SATURDAY tab of the workbook
which contains data through line 35000 and sum the figures in the OT
column only if certain criteria in the FIN column and the LDC column
match.

I have the following LDC criteria already established in S1:T3

LDC LDC
=2000 <=2999
=9200 <=9200


The formula I already have is:

=DSUM(SATURDAY!$A$1:$J$35000,"OT",$S$1:$T$3)

The problem is that this formula does not filter the data for finance
number relevance, it only filters based on the LDC criteria I
established in S1:T3.

How do I add the 2nd criteria to match the value I have in my report
column A with the values in the SATURDAY tab Column A "FIN".

I need my results filtered on both criteria.

Thanks in advance for any assistance you can provide.

Don

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 Stolie Excel Discussion (Misc queries) 4 March 26th 08 09:32 PM
DSUM Jed Excel Worksheet Functions 0 January 8th 08 11:35 PM
DSUM? HSalim[MVP] Excel Programming 2 November 9th 06 04:26 AM
Sum If or DSUM help? towl Excel Worksheet Functions 2 August 16th 05 03:30 PM
DSUM Tnknsnj Excel Worksheet Functions 1 June 10th 05 03:31 AM


All times are GMT +1. The time now is 08:10 PM.

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"