Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
CraigS
 
Posts: n/a
Default excel database statistical functions (DSUM etc..)

Scenario: A budget table with some of the following fields; Company, Project,
ExpenseType, and Amount to keep things simple.

Is their a way from within the excel's database statistical functions
formula to define the criteria by means of referring to the names of the data
fields themselves to form a dynamic and complex set of criteria instead of
defining hundreds of external criteria ranges that would be needed to define
every single possibility? Something like the following:
=DSUM(mytable,"Amount",+Company=a2,Project=b2,Expe nseType=c2) where this
formula could be copied down to refer to the company, project, and expense
type that was appropriate for the next row at row 3 vs. row 2 in the above
example.

Instead of having to do this: =DSUM(mytable,"Amount",CriteriaRange)
Thanks
Craig

  #2   Report Post  
Posted to microsoft.public.excel.misc
Debra Dalgleish
 
Posts: n/a
Default excel database statistical functions (DSUM etc..)

The criteria range needs a heading row and criteria row(s), so won't
work in the way you'd like.

You could use a pivot table to summarize the data, as described in
Excel's Help, or he

http://www.contextures.com/xlPivot01.html

Or, use the Sumproduct function, as described he

http://www.contextures.com/xlFunctio...tml#SumProduct

CraigS wrote:
Scenario: A budget table with some of the following fields; Company, Project,
ExpenseType, and Amount to keep things simple.

Is their a way from within the excel's database statistical functions
formula to define the criteria by means of referring to the names of the data
fields themselves to form a dynamic and complex set of criteria instead of
defining hundreds of external criteria ranges that would be needed to define
every single possibility? Something like the following:
=DSUM(mytable,"Amount",+Company=a2,Project=b2,Expe nseType=c2) where this
formula could be copied down to refer to the company, project, and expense
type that was appropriate for the next row at row 3 vs. row 2 in the above
example.

Instead of having to do this: =DSUM(mytable,"Amount",CriteriaRange)
Thanks
Craig



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
Excel Database Query Mark Ansonia Setting up and Configuration of Excel 1 November 4th 05 04:54 PM
Mathematical explanations/equations for Excel functions in "Help" mta7000 Excel Worksheet Functions 0 November 4th 05 04:02 AM
Are there functions that perform robust statistics in Excel? froot_broot Excel Worksheet Functions 0 August 30th 05 10:18 PM
Excel 2003 - New Database Query JNA Excel Discussion (Misc queries) 0 August 17th 05 10:01 PM
i want to connect excel with sql server 2000 as database with macr khurram saddique Excel Discussion (Misc queries) 2 February 18th 05 11:09 AM


All times are GMT +1. The time now is 11:41 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"