+ Reply to Thread
Results 1 to 4 of 4

Thread: Sum based on Cell criteria and date range

  1. #1
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    2007
    Posts
    280

    Sum based on Cell criteria and date range

    Afternoon all,

    In the attached workbook I am looking for a formula to help extract the total dollar amounts associate with a plant area for a given month. The Data tab contains mock information from a system dump.

    On the Monthly Totals tab I would like to be able to extract the total dolloar amount form L:L on 'Data' for a given month based on a Matching Plant section in A:A.

    I have the expected total in 'Monthly Totals'

    Data!F3 should be 1/20/2011 not 5/5/1900

    Thanks
    Attached Files Attached Files
    Last edited by scaffdog845; 04-11-2011 at 02:17 PM. Reason: Data!F3 should be 1/20/2011 not 5/5/1900
    Click here to read the Forum Rules
    To give a virtual "pat on the back" click the SCALES Icon in the SILVER toolbar from that user's post.

  2. #2
    Forum Guru Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    2,784

    Re: Sum based on Cell criteria and date range

    This gives the expected result in C10 BUT you have to put first of month dates in C4 to N4 (and you can then format as mmm-yy or whatever else you want)

    =SUMIFS(Data!L1:L20,Data!A1:A20,"="&LEFT('Monthly Totals'!B10,2),Data!F1:F20,">="&'Monthly Totals'!C4,Data!F1:F20,"<="&EOMONTH('Monthly Totals'!C4,0))

  3. #3
    Forum Guru Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    2,784

    Re: Sum based on Cell criteria and date range

    Here it is with the Abs Ref applied and unnecessary sheet ref removed for cell C7 and you can copy throughout

    =SUMIFS(Data!$L$1:$L$20,Data!$A$1:$A$20,"="&LEFT($B7,2),Data!$F$1:$F$20,">="&C$4,Data!$F$1:$F$20,"<="&EOMONTH(C$4,0))
    I didn't notice the values in col A so if you want you can refer to those instead of the part that reads LEFT($B7,2)
    Last edited by Cutter; 04-11-2011 at 01:59 PM.

  4. #4
    Forum Guru Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    2,784

    Re: Sum based on Cell criteria and date range

    Here's your file (needs formatting for header Apr to Dec)
    Attached Files Attached Files

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