+ Reply to Thread
Results 1 to 8 of 8

SUMPRODUCT, multiple criteria including ranges that are listed horozontally

  1. #1
    Registered User
    Join Date
    07-06-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    46

    SUMPRODUCT, multiple criteria including ranges that are listed horozontally

    Hi guys,

    Please see attached workbook (hopefully it attached ok)

    I am looking to return a rate from a table based on 4 criteria

    1. Freight type = B2 (vertical range A4:A22)
    2. Trailer/Deck (qty) = C2 (horozontal range with duplicate values B11:AG11)
    3. KMS travelled >= to A2 (horozontal range with duplicate values B12;AG12)
    4. KMS travelled <= to A2 (horozontal range with duplicate values B13;AG14)

    Value returned should be $4.60

    I can see why this might not work with the kms qty range (horizontal and containing duplicates for each iteration of trailer & deck qty). Any advice on formula corrections or table reformat would be much appreciated, cheers.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-06-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    46

    Re: SUMPRODUCT, multiple criteria including ranges that are listed horozontally

    Sorry forgot to put the formula i tried in the text: =SUMPRODUCT(B14:AG22,(A14:A22=B2)*(B11:AG11=C2)*(B12:AG12>=G58)*(B13:AG13<=G58))

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: SUMPRODUCT, multiple criteria including ranges that are listed horozontally

    Manwithaplan,

    I don't see any value in G58

    =SUMPRODUCT(B14:AG22,(A14:A22=B2)*(B11:AG11=C2)*(B12:AG12>=G58)*(B13:AG13<=G58))

    Is there a typo?
    Dave

  4. #4
    Registered User
    Join Date
    07-06-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    46

    Re: SUMPRODUCT, multiple criteria including ranges that are listed horozontally

    Sorry!! both should read A2 (KMs Travelled) I copy pasted it from another work book

  5. #5
    Registered User
    Join Date
    07-06-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    46

    Re: SUMPRODUCT, multiple criteria including ranges that are listed horozontally

    =sumproduct(b14:ag22,(a14:a22=b2)*(b11:ag11=c2)*(b12:ag12>=a2)*(b13:ag13<=a2))

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: SUMPRODUCT, multiple criteria including ranges that are listed horozontally

    Try reversing the comparison operators to

    =SUMPRODUCT(B14:AG22,(A14:A22=B2)*(B11:AG11=C2)*(B12:AG12<=A2)*(B13:AG13>=A2))

  7. #7
    Registered User
    Join Date
    07-06-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    46

    Re: SUMPRODUCT, multiple criteria including ranges that are listed horozontally

    Dang that was an obvious mistake. Thanks mate

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: SUMPRODUCT, multiple criteria including ranges that are listed horozontally

    You're welcome ... been there, done that.

+ 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. Replies: 16
    Last Post: 05-25-2015, 08:51 AM
  2. [SOLVED] Sumproduct with multiple criteria including partial search
    By Groovicles in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-29-2013, 01:30 PM
  3. 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
  4. Counting with Multiple Criteria (including Date Ranges and Text)
    By GABBA in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-05-2013, 02:56 PM
  5. [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
  6. Sumproduct w/multiple criteria including a division calculation
    By cedarhill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-02-2010, 01:12 PM
  7. Copy worksheet including named ranges not including macros
    By urungus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2009, 01:38 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