#1   Report Post  
PaulOakley
 
Posts: n/a
Default dsum


Hello.

I am trying to sum columns only with a specific week commencing date.
Is dsum the only way to do this? As i cannot get dsum to work. There
are often more than five week commencing dates that need to all be
added together.

Any ideas?

Thanks in advance


--
PaulOakley
------------------------------------------------------------------------
PaulOakley's Profile: http://www.excelforum.com/member.php...o&userid=25103
View this thread: http://www.excelforum.com/showthread...hreadid=387997

  #2   Report Post  
optionbase1
 
Posts: n/a
Default


could try adding dsum's together?

if not try an array function

=sum(if((A1:A200=weekstartdate1)*(A1:A200=weekstar tdate2)*(A1:A200=weekstartdate3)*(A1:A200=weekstar tdate4)*(A1:A200=weekstartdate5),B1:B200))

where A:A contains your week start dates and B:B contains your column
to sum.

the * represents an AND
you can use a + to represent OR

You need to press and hold Ctrl+Shift when pressing Enter having typed
these formula to tell Excel that it is an array function. it should
then appear in the Formula bar with {} around it.

(note that if you either reference a whole column or use lots of these
in a spreadsheet you will absorb system resources; shouldn't be a
problem if you are using a few)

Have you considered a Pivot table?


--
optionbase1
------------------------------------------------------------------------
optionbase1's Profile: http://www.excelforum.com/member.php...o&userid=25212
View this thread: http://www.excelforum.com/showthread...hreadid=387997

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
conditional criteria in DSUM S. H. Drew Excel Discussion (Misc queries) 7 May 2nd 05 06:14 PM
DSUM and DCount when criteria values are similar BAC Excel Worksheet Functions 1 February 14th 05 06:38 PM
Use of the DSUM formula to find exact matches in datatables Rob Henson Excel Worksheet Functions 1 January 27th 05 02:14 AM
DSUM frustrations Paul Adams Excel Worksheet Functions 3 November 12th 04 10:59 AM
DSUM frustrations Paul Adams Excel Worksheet Functions 0 November 12th 04 10:56 AM


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