+ Reply to Thread
Results 1 to 8 of 8

Sum of a range where multiple column criteria and row criteria

  1. #1
    Registered User
    Join Date
    05-21-2018
    Location
    London
    MS-Off Ver
    Mac 2016
    Posts
    5

    Sum of a range where multiple column criteria and row criteria

    Hi guys,

    I am looking to sum a range of cells whereby the criteria is e.g. shop AND manager AND sep-18 - to populate the tables on the right.


    Screen Shot 2018-05-21 at 17.36.21.png


    I would appreciate some help, thanks!

  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,366

    Re: Sum of a range where multiple column criteria and row criteria

    Attach a sample workbook (not image).so that we do not have to manually key in your data to do a testing.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Sum of a range where multiple column criteria and row criteria

    What have you tried and what was the result??

    Regards,
    Rev12

  4. #4
    Registered User
    Join Date
    05-21-2018
    Location
    London
    MS-Off Ver
    Mac 2016
    Posts
    5

    Re: Sum of a range where multiple column criteria and row criteria

    Here is the sample notebook with a before and after sheet.

    The after sheet displays what data I want it to show as well as the formulas I have tried which all come back with '#VALUE"

    =SUMIFS(Before!C2:J4,Before!A1:A4,"Paper",Before!B1:B4,"Magazine",Before!C1:J1,"Sep18")

    =SUMPRODUCT(Before!A1:A4="Paper")*(Before!B1:B4="Magazine")*(Before!C1:J1="Sep-18")*(Before!C2:J4)

    =SUM(IF(Before!C1:J1="Sep-18",IF(Before!A1:A4="Paper",IF(Before!B1:B4="Magazine",Before!C2:J4))))
    Attached Files Attached Files

  5. #5
    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,366

    Re: Sum of a range where multiple column criteria and row criteria

    Removed merged cells in before

    in After

    in B2

    =SUMPRODUCT((Before!$C$2:$J$4)*(Before!$C$1:$J$1=After!B$1)*(Before!$B$2:$B$4=After!$A$1)*(Before!$A$2:$A$4=After!$A2))

    copy across and down
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Sum of a range where multiple column criteria and row criteria

    May be it would help please try as attached Excel
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-21-2018
    Location
    London
    MS-Off Ver
    Mac 2016
    Posts
    5

    Re: Sum of a range where multiple column criteria and row criteria

    Thank you so much!!

  8. #8
    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,366

    Re: Sum of a range where multiple column criteria and row criteria

    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] COUNTIFS with Multiple Text Criteria in Same Criteria Range
    By xl2016 in forum Excel General
    Replies: 5
    Last Post: 06-18-2017, 05:00 AM
  2. Replies: 3
    Last Post: 02-02-2017, 04:32 AM
  3. Countifs with multiple criteria in single criteria range
    By MCP313 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2016, 03:51 AM
  4. [SOLVED] Macro for AverageIFS, with multiple criteria in the same criteria range
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 05-24-2014, 01:13 AM
  5. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  6. Replies: 2
    Last Post: 10-05-2011, 12:43 PM
  7. Replies: 1
    Last Post: 05-16-2011, 05:00 PM

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