+ Reply to Thread
Results 1 to 7 of 7

SUMIFS / SUMPRODUCT Based on Three Sets of Criteria - Not Working!

  1. #1
    Registered User
    Join Date
    03-11-2021
    Location
    Colchester, England
    MS-Off Ver
    Office 365
    Posts
    27

    SUMIFS / SUMPRODUCT Based on Three Sets of Criteria - Not Working!

    Hello!

    I'm trying to look up values based on three different criteria across two sheets.

    I've managed to do this using SUMIFS, which will generate the results based on two types of criteria, but I'm unable to generate the value based on the value of the third criteria.

    Basically, I want to generate my result based on the third factor (column F) having a particular value, otherwise wanting the result to be blank (on top of the other two columns being used).

    I've attempted this using the following two formulas, neither giving me any success. Spreadsheet attached should this be helpful.


    =SUMIFS(Table7[PLOT TOTAL],Table7[SITE],[@SITE],Table7[PLOT - FOR ALL ELSE],[@[PLOT(S)]],[TRANSACTION TYPE],"contract")

    =SUMPRODUCT(--(Table7[SITE]=[@SITE]),--(Table7[PLOT - FOR ALL ELSE]=[@[PLOT(S)]]),--([@[TRANSACTION TYPE]]="contract"),Table7[PLOT TOTAL])


    Hope this is clear. I'm sure there is an easy way to do this (bit of a noob here) - thank you all in advance

    Regards,
    Luke
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: SUMIFS / SUMPRODUCT Based on Three Sets of Criteria - Not Working!

    from one Colcestrian Luke to another.... ;-)

    the third criteria seems pre-emptive (and stored separate to Table 7) so, rather than being part of the SUMIFS this test should likely precede it, logically speaking, e.g.

    =IF([@[TRANSACTION TYPE]]<>"contract","",SUMIFS(Table7[PLOT TOTAL],Table7[SITE],[@SITE],Table7[PLOT - FOR ALL ELSE],[@[PLOT(S)]]))

  3. #3
    Registered User
    Join Date
    03-11-2021
    Location
    Colchester, England
    MS-Off Ver
    Office 365
    Posts
    27

    Re: SUMIFS / SUMPRODUCT Based on Three Sets of Criteria - Not Working!

    Ha ha - what are the chances!!

    That's fantastic. Got lots more of those formulas to do, so will remember that.

    One more thing... I'm having a similar issue except the sum range concerns two different columns for one result.
    Similar to before, I'm trying to generate a value based on the 'transaction type'. However, I need to look up one specific value from two different columns in the 'lookup' sheet based on the column header name.

    I know this isn't the most logical way of doing things, but am totally stumped. Is there a simple way of achieving this? Currently, I'm looking up the labour total, which isn't ideal!
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: SUMIFS / SUMPRODUCT Based on Three Sets of Criteria - Not Working!

    Instead of a non-working formula, tell us what values you are expecting and which cells in the lookup table they are coming from.

    I'm over the border in Ipswich.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: SUMIFS / SUMPRODUCT Based on Three Sets of Criteria - Not Working!

    do you mean something like below?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    the above will sum the column whose name matches that of the row Transaction Type -- so 5 and 10, respectively, in your sample
    (you could also use an INDIRECT but, the above is the better alternative, IMO)

  6. #6
    Registered User
    Join Date
    03-11-2021
    Location
    Colchester, England
    MS-Off Ver
    Office 365
    Posts
    27

    Re: SUMIFS / SUMPRODUCT Based on Three Sets of Criteria - Not Working!

    Hi people!

    Sorry Ali, this was a tricky one for me to explain!

    XLent has cracked this for me though. I've been using this without any issues so far.

    Thanks so much for your help

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: SUMIFS / SUMPRODUCT Based on Three Sets of Criteria - Not Working!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. [SOLVED] SUMPRODUCT & SUMIFS not working
    By chaiyya345 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-21-2020, 10:09 AM
  2. Sumproduct(Sumifs with table and named range not working.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2020, 08:29 AM
  3. SUMPRODUCT(SUMIFS) Not working the way I want.
    By ProjectSupport in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-26-2019, 06:33 PM
  4. Replies: 0
    Last Post: 08-22-2017, 03:49 PM
  5. SUMIFS using SUMPRODUCT based on multiple criteria
    By PaulGMD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-05-2017, 12:13 PM
  6. [SOLVED] SUMPRODUCT, COUNTIF formulas not correctly counting based on two sets of criteria
    By justinbelkin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-11-2013, 10:12 AM
  7. Replies: 10
    Last Post: 02-28-2011, 03:26 AM

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