+ Reply to Thread
Results 1 to 2 of 2

Single Column Criteria for Row, Mutliple Columns to sum, Sum with Index Matching

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    17

    Single Column Criteria for Row, Mutliple Columns to sum, Sum with Index Matching

    I would like to sum within range all values that match a single column criteria for the sum row along with multiple columns that will indicate which specific cells within the row to sum.

    My formula:
    =SUM(INDEX(RAW!B4:DF137,MATCH(A3,RAW!A4:A137,0),0):INDEX(RAW!B4:DF137,MATCH(A3,RAW!A4:A137,0),MATCH(B2,RAW!B3:DF3,0)))

    This is only bringing a sum of the entire row within the range. I want to only include cells within the row that match a column criteria. Is this possible?

    Using this table below as an example, I want my formula to add up by row '1st Row Unique ID' and then columns 'Target Column' to give a sum of 1,050. The empty columns are intentional.

    xyz Team Descriptions Target Column Column 2 Column 3 Column 4 Column 5 Column 6 Target Column Column 2 Column 3 Column 4 Column 5 Column 6
    1st Row Unique ID Team 1 500 54 33 435 44 65 550 22 54 33 333 44
    2nd Row Unique ID Data in this row ->
    3rd Row unique ID Data in this row ->

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Single Column Criteria for Row, Mutliple Columns to sum, Sum with Index Matching

    SUMPRODUCT is much shorter and is designed to handle crossing ranges.

    =SUMPRODUCT((RAW!A4:A137=A1)*(RAW!B3:DF3=B2)*(RAW!B4:DF137))
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

+ 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] Count text in one column Matching single or multiple Criteria from Other Column Excel 2003
    By Jose Macieira in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-17-2013, 06:55 AM
  2. Trouble with Index/Match and/or Vlookup and mutliple column matching
    By eralford in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-03-2012, 08:32 AM
  3. [SOLVED] Index Match with mutliple criteria
    By FunctionalHippie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2012, 01:34 PM
  4. index match mutliple criteria
    By 00Able in forum Excel General
    Replies: 2
    Last Post: 03-04-2011, 10:43 PM
  5. Return Single Value from Mutliple Criteria
    By Doogs2009 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2010, 05:10 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