+ Reply to Thread
Results 1 to 7 of 7

Index & Match - Doesn't return sum of multiple instances

  1. #1
    Registered User
    Join Date
    09-24-2009
    Location
    Phila, PA
    MS-Off Ver
    Excel 2003
    Posts
    28

    Index & Match - Doesn't return sum of multiple instances

    Excel 2003

    Using index & match to find and return sum. however, the formula does not return the sum of all instances, only seems to pick up first entry.
    Thanks for your help, I appreciate it.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-19-2011
    Location
    Utah
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Index & Match - Doesn't return sum of multiple instances

    I changed your formula from using the index and match, which only brings over the first occurrence, to using a SUM Array formula: =SUM(($A$2:$A$8=A13)*($B$2:$B$8=B13)*$G$2:$G$8). Here is your workbook modified as such.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-24-2009
    Location
    Phila, PA
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Index & Match - Doesn't return sum of multiple instances

    This may work, but what happens for cells that may have a zero value. Will this return an error message?

  4. #4
    Registered User
    Join Date
    01-19-2011
    Location
    Utah
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Index & Match - Doesn't return sum of multiple instances

    It should result in a zero if it cannot find a match. You could always do this =IF(ISERROR(SUM(($A$2:$A$8=A13)*($B$2:$B$8=B13)*$G$2:$G$8)),0,SUM(($A$2:$A$8=A13)*($B$2:$B$8=B13)*$G$2:$G$8)).

  5. #5
    Registered User
    Join Date
    09-24-2009
    Location
    Phila, PA
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Index & Match - Doesn't return sum of multiple instances

    Thanks - I'll give it a try
    Quote Originally Posted by limits7 View Post
    It should result in a zero if it cannot find a match. You could always do this =IF(ISERROR(SUM(($A$2:$A$8=A13)*($B$2:$B$8=B13)*$G$2:$G$8)),0,SUM(($A$2:$A$8=A13)*($B$2:$B$8=B13)*$G$2:$G$8)).

  6. #6
    Registered User
    Join Date
    09-24-2009
    Location
    Phila, PA
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Index & Match - Doesn't return sum of multiple instances

    Does the information have to be on the same page for this to work? I tried this pulling data from different workbooks and the results are #Value. However, if I put the data on the same page as I did in my Excel example, it works fine.

    Quote Originally Posted by limits7 View Post
    It should result in a zero if it cannot find a match. You could always do this =IF(ISERROR(SUM(($A$2:$A$8=A13)*($B$2:$B$8=B13)*$G$2:$G$8)),0,SUM(($A$2:$A$8=A13)*($B$2:$B$8=B13)*$G$2:$G$8)).

  7. #7
    Registered User
    Join Date
    01-19-2011
    Location
    Utah
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Index & Match - Doesn't return sum of multiple instances

    It can be on another sheet. You will have to change the following ranges: $A$2:$A$8 will have to be the range that contains the Project Code, $B$2:$B$8 will have to be the range that Activity Code, & $G$2:$G$8 will have to be the range that contains Total. For example if they where all on a TAB labeled "Billing" the ranges would be, respectively,: Billing!$A$2:$A$8, Billing!$B$2:$B$8, & Billing!$G$2:$G$8. See attachment
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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