+ Reply to Thread
Results 1 to 7 of 7

Sum Data Using Dates and Additional Criteria

  1. #1
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Sum Data Using Dates and Additional Criteria

    I'm trying to sum hours for certain discipline between periods of time that are about a month apart. I have figured out how to sum all the hours for all the disciplines for that time period but have failed at sum the hours for each discipline. What I've got so far is:

    =SUMIF(bbb,"<="&DATE(2004,10,29),ccc)-SUMIF(bbb,"<"&DATE(2004,9,25),ccc)

    aaa=range of Disciplines 1-28, bbb=range of dates, ccc=range of hours.
    (each of these represent a range that are in a single column)

    What do I need to add or change to this function in order for it to only sum a specific discipline between the dates, not all of the disciplines between the dates? For example if I wanted to sum only the hours of discipline 1 between
    9/25/2004 & 10/29/2004. Discipline 1 is in the range aaa.

    I would appreciate if someone could point me in the right direction on this.

  2. #2
    Registered User
    Join Date
    01-25-2008
    Location
    The Netherlands
    MS-Off Ver
    2002, 2003, 2007
    Posts
    94
    Hi there,

    I guess you could use an array function to make this work.

    have a look at the following links for more info:
    Hope it helps
    J.

  3. #3
    Registered User
    Join Date
    01-29-2008
    Posts
    68
    Yes I think it is an array formula. Ill look over your links and see if I can find anything that helps, thanks.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Probably Sumproduct will do

    Please Login or Register  to view this content.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    01-29-2008
    Posts
    68
    I tried it and it gave me #NUM!.Is there anything in my data formatting that would cause this problem?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by kgibson20
    I tried it and it gave me #NUM!.Is there anything in my data formatting that would cause this problem?
    The ranges cannot be whole columns, eg. A:A if you are not in XL2007

  7. #7
    Registered User
    Join Date
    01-29-2008
    Posts
    68
    Worked like a charm. TYVM

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1