+ Reply to Thread
Results 1 to 5 of 5

Summing Data with Multiple Criteria on Horizontal and Vertical Axis'

  1. #1
    Registered User
    Join Date
    02-06-2014
    Location
    Columbus, OH
    MS-Off Ver
    Excel 2007
    Posts
    12

    Summing Data with Multiple Criteria on Horizontal and Vertical Axis'

    I have tried solving this as many ways as I can possibly think of, but nothing seems to be working.

    I have attached a sample file below with simplified data to try and illustrate my issue. The data in the sample file shows data for multiple members under multiple categories for multiple months. The output on the Sample Summary Sheet shows the current months results and YTD results.

    My logic said that the formula in F3 on the Summary sheet would have been =SUMIFS('Sample Data Sheet'!C3:N7,'Sample Data Sheet'!C1:N1,"*2015*",'Sample Data Sheet'!C2:N2,"Yes",'Sample Data Sheet'!A2:A7,A3) but this results in a #VALUE! error. I've tried sum and sumproduct and a variety of other formulas trying to figure out what the best way is to make the report work, but they all result in errors. I would take the clunky approach and sum VLOOKUP values, but each month the newest data will be added to columns C:E of the Data Sheet, followed by 12 months of moving data, so I would be adding new VLOOKUP ranges each month, and with 1200 members and four Sample Data Sheets, it would bog the file down too much.

    Sample Data Sheet.xlsx
    Last edited by tlscowden; 03-13-2015 at 02:45 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Summing Data with Multiple Criteria on Horizontal and Vertical Axis'

    For the February 2015 values:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Summing Data with Multiple Criteria on Horizontal and Vertical Axis'

    C3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied to February 2015 Yes and No cells

    F3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied to 2015 Yes and No cells

    E3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied to all percentage cells.


    Regards, TMS

  4. #4
    Registered User
    Join Date
    02-06-2014
    Location
    Columbus, OH
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Summing Data with Multiple Criteria on Horizontal and Vertical Axis'

    Thank you for your help. The formula above is essentially the same as the formula I was using, but my formula continually threw an error stating that the formula required too many resources to process so it would not calculate.

    To update for anybody else that encounters this thread, I was using named ranges for the various ranges and finally, upon seeing the formula above, realized that the named ranges were entire columns instead of just the cells containing results. The actual dataset was 45 columns wide, so the entire range that the SUMPRODUCT function was trying to reference was 45 columns X 1048576 rows.

    By using a dynamic named range =OFFSET('Sample Data Sheet'!$C$3,0,0,COUNTA('Sample Data Sheet'!$C:$C),12) to only select the rows containing data (about 1200 on the actual file), the formulas calculated perfectly.

    Thank you again.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Summing Data with Multiple Criteria on Horizontal and Vertical Axis'

    You're welcome.

+ 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] Matching multiple criteria in two books, one data is horizontal, the other is vertical.
    By udrmichelle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-18-2015, 04:58 PM
  2. Replies: 5
    Last Post: 06-06-2013, 05:12 PM
  3. Replies: 2
    Last Post: 10-19-2011, 05:19 PM
  4. Replies: 6
    Last Post: 12-07-2010, 02:54 PM
  5. Getting data from vertical axis to horizontal
    By Italos in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-10-2009, 09:41 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