+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    11-19-2009
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    2

    Red face Sum of Criteria within Date Range

    I am trying to take the sum of a set up numbers that match several criteria. Unfortunately SUMIFS is not working and neither is SUMPRODUCT. Assuming the spreadhsheet is formatted as follows:

    A B C D E
    1 NAME DATE TASK QUANTITY
    2 Danny 7/8/09 101 8
    3 Bill 7/10/09 101 8
    4 Danny 7/11/09 101 8
    5 Bill 7/8/09 101 8
    6 Bill 7/8/09 101 8
    7 Danny 7/11/09 101 8
    8 Danny 7/25/08 102 8

    I created a table where I can insert a formula that would return the sum of the quantity for the task number and date range of each individual. Here is one of the formulas I tried:

    =SUMIFS($E$2:$E$7, $B$2:$B$7, $B2, $d$2:$d$7,<12/31/2009&>1/1/2008, $d$2:$d$7,="101")

    I do nto want to create a pivot table but would prefer to create a table arranged like this where I would be able to insert the formulas in each cell.

    1/1/2008-12/31/2008 1/1/2009-12/31/2009
    Danny
    task 101
    task 102
    Bill
    task 101
    task 102

  2. #2
    Forum Moderator Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    5,212

    Re: Sum of Criteria within Date Range

    Hi Dmacri, and welcome to the forum.

    Could you possibly upload a sample worksheet with some data on one sheet, and how you'd like to see the result (along with your expected results based on the sample data) on a second sheet?

    It's tough to tell what columns belong where, especially with the table design you want.

  3. #3
    Registered User
    Join Date
    11-19-2009
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Sum of Criteria within Date Range

    Thanks for your help. Attached is a spreadsheet with the data. I am trying to fill the cells between D14 and F17. As you see I was able to get the sum of the data for the Task Number and Name fields but am having trouble inputting the data range in the formula. Thanks again.
    Attached Files Attached Files

  4. #4
    Forum Moderator Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    5,212

    Re: Sum of Criteria within Date Range

    If you change D13 and E13 to just the year (2008 and 2009) you can then use this in D14:E17

    =SUMPRODUCT(--($B$2:$B$7=$A14),--($D$2:$D$7=$B14),--(YEAR($F$2:$F$7)=D$13),$E$2:$E$7)

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0