+ Reply to Thread
Results 1 to 6 of 6

Sumproduct Formula - With date range and multiple criteria

  1. #1
    Registered User
    Join Date
    01-19-2014
    Location
    West Nyack, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Sumproduct Formula - With date range and multiple criteria

    Hi there - I'm new to the forum but have been impressed with the responses I've seen to date.

    Here is my required result: SUM OF FIELD 3, WHEN [FIELD 1 or FIELD 2 = ORK] AND [FIELD 4 = LOCATION 1] AND [FIELD 5 BETWEEN 10/1/2012 AND 10/31/12]

    FIELD 1 FIELD 2 FIELD 3 FIELD 4 FIELD 5
    ORK $10.00 Location 1 10/1/2012
    ORK ORK $10.00 Location 1 10/15/2012
    ORK DM14 $10.00 Location 2 10/10/2012
    DM13 $400.00 Location 1 10/5/2012



    Issue: When ORK appears in BOTH field 1 and 2, the sum result is duplicated

    Formula so far: =SUMPRODUCT((DUMP!$E$2:$E$300000="Location 1")*((LEFT(DUMP!$B$2:$B$300000,3)="ORK")+(LEFT(DUMP!$C$2:$C$300000,3)="ORK"))*((DUMP!$F$2:$F$300000>=DATE(2012,10,1))*((DUMP!$F$2:$F$300000<=DATE(2012,10,31)))*(DUMP!$D$2:$D$300000)))
    RESULT = $30 (RESULT SHOULD BE $20)
    Attached Files Attached Files
    Last edited by kellydvorak; 01-19-2014 at 02:22 PM. Reason: CHANGED VIEW OF TABLE VALUES

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sumproduct Formula - With date range and multiple criteria

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by newdoverman; 01-19-2014 at 03:47 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumproduct Formula - With date range and multiple criteria

    Use cells to hold the criteria:

    A2 = Location 1
    B2 = ORK
    C2 = 10/1/2012

    Then:

    =SUMPRODUCT(--(Dump!D2:D5=A2),SIGN((LEFT(Dump!A2:A5,3)=B2)+(LEFT(Dump!B2:B5,3)=B2)),--(Dump!E2:E5>=C2),--(Dump!E2:E5<=EOMONTH(C2,0)),Dump!C2:C5)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    01-19-2014
    Location
    West Nyack, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Sumproduct Formula - With date range and multiple criteria

    This worked like a charm. You're good! Thank you.

  5. #5
    Registered User
    Join Date
    01-19-2014
    Location
    West Nyack, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Sumproduct Formula - With date range and multiple criteria

    Thank you so much, this was very helpful!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumproduct Formula - With date range and multiple criteria

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SUMIFS or SUMPRODUCT with multiple criteria including date ranges
    By baxcat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2013, 09:40 AM
  2. [SOLVED] COUNTIF / SUMPRODUCT- multiple criteria - including date range
    By Sph01 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-31-2012, 04:54 AM
  3. Sumproduct with multiple criteria & dynamic range
    By e_lad in forum Excel General
    Replies: 10
    Last Post: 03-17-2010, 09:15 AM
  4. Replies: 4
    Last Post: 05-16-2008, 02:27 AM
  5. Replies: 1
    Last Post: 09-19-2005, 10:05 PM

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.6.0 RC 1