+ Reply to Thread
Results 1 to 4 of 4

Sumproduct using multiple criteria

  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    LondOn, England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Sumproduct using multiple criteria

    Hi experts,

    I am trying to sum over multiple sheets dependent on single or multiple criteria.
    I reproduce below the formula in one of the cells which is summing certain cells on separate sheets dependent on whether the sheet is on a named sheet.
    So in the below example and attachment, any sheet defined as “UK” and matching the country in cell B10, the value contained in cell D8 of that country's sheet will be returned.
    Therefore, the value 220 is returned from the Ireland sheet as Ireland is on the named list.

    =SUMPRODUCT(SUMIF(INDIRECT("'"&UK&"'!B2"),$B12,INDIRECT(UK&"!"&CELL("address",K$8))))


    This is all working fine. However I am struggling to write the formula for multiple criteria, so further down the sheet in the yellow filled cell I want all the Staff costs in January that are on “UK” named list (again UK & Ireland). I have made several attempts but either returning blank or ref errors. Please help.

    Sbz
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,198

    Re: Sumproduct using multiple criteria

    This will get your result but you need to change highlighted range for other columns

    =SUMPRODUCT(SUMIF(INDIRECT("'"&UK&"'!B13:B29"),$B19,INDIRECT(UK&"!D13:D29")))

    Copy down
    Last edited by JohnTopley; 04-18-2018 at 01:41 PM.

  3. #3
    Registered User
    Join Date
    06-20-2013
    Location
    LondOn, England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Sumproduct using multiple criteria

    Thanks John. Apologies been out of the office the last week so not had chance to respond. I managed to take your solution and tweaked it slightly to give me the desired result.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,198

    Re: Sumproduct using multiple criteria

    No problem: glad to have a solution.

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

+ 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] Sum based on multiple criteria using sumproduct: One criteria is 'cell contains'.....
    By jeroenv in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-04-2018, 08:18 AM
  2. [SOLVED] SUMPRODUCT of multiple columns with multiple criteria over multiple sheets
    By BellyGas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2015, 08:27 AM
  3. [SOLVED] Multiple criteria SUMPRODUCT (3 criteria) Excel 2003
    By lelrich in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2014, 01:58 PM
  4. Replies: 1
    Last Post: 02-21-2014, 09:09 PM
  5. Replies: 6
    Last Post: 08-04-2013, 11:53 AM
  6. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  7. Sumproduct/sumif/indirect across multiple workbooks, worksheets, multiple criteria
    By robgardner15 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2011, 02:35 AM

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