+ Reply to Thread
Results 1 to 7 of 7

Summing multiple criteria across rows and columns

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    4

    Summing multiple criteria across rows and columns

    I need to be able to solve the following problem without arrays or sum product solution. Would be grateful to anyone that can help.

    If have a set of data with columns:
    1 3 5 2 1 5 2 3

    And rows:
    Dog
    Cat
    Fish
    Dog
    Dog
    Cat

    and there is data in each cell in this matrix.

    I need to sum the values where the column and row values match (i.e. sum all values where column = 1 and row = dog).

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 VersionVersion 2502 Win 11
    Posts
    24,523

    Re: Summing multiple criteria across rows and columns

    Look to employ the sumif function

    http://www.techonthenet.com/excel/formulas/sumif.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-30-2013
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Summing multiple criteria across rows and columns

    Thank you for the reply. However, I don't want to do an array - the performance is poor on large data sets. Also, I want to have something that is dynamic. I have one formula that uses sumif, offset and match, but only aggregates multiple row headers.

    See attached for an example
    Attached Files Attached Files
    Last edited by kimberly01; 10-01-2013 at 12:11 AM.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 VersionVersion 2502 Win 11
    Posts
    24,523

    Re: Summing multiple criteria across rows and columns

    It might prove helpful to all if you attach a sample workbook. Make sure there is just enough data to make it clear what is needed. 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 demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Registered User
    Join Date
    09-30-2013
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Summing multiple criteria across rows and columns

    I've posted a sample. Thanks for your help.

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,921

    Re: Summing multiple criteria across rows and columns

    Add One more column Feb Total and Sum the Feb Columns with sumif formula
    then use the Sumif formula for Dog by using reference of Feb Total Column
    Attached Files Attached Files
    Last edited by samba_ravi; 10-01-2013 at 12:48 AM.

  7. #7
    Registered User
    Join Date
    09-30-2013
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Summing multiple criteria across rows and columns

    I would like to avoid adding a column.

    Any other suggestions without inserting additional fields?

+ 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. Summing from 2 criteria and multiple repeated columns
    By Bassteban in forum Excel General
    Replies: 7
    Last Post: 08-17-2011, 02:37 PM
  2. Issue with summing columns with multiple criteria
    By dcshaker in forum Excel General
    Replies: 4
    Last Post: 06-12-2011, 06:55 AM
  3. Summing multiple columns based on criteria
    By bigduke6 in forum Excel General
    Replies: 2
    Last Post: 04-06-2011, 10:45 AM
  4. Replies: 3
    Last Post: 08-23-2010, 05:07 AM
  5. [SOLVED] Summing Rows with Multiple Criteria
    By Reggie Mitchell in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-15-2005, 03:29 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