+ Reply to Thread
Results 1 to 3 of 3

How to combine SUMIF, INDEX and MATCH

  1. #1
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    How to combine SUMIF, INDEX and MATCH

    I didn't think this would be so difficult to do... But I've been messing with it for a few hours now and I'm getting nowhere.

    This is what I have but it isn't working. There are no problems other than it only returns 0 from IFERROR.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This formula is supposed to pull the total number of balls made by a player but it should only add up the totals up to and including the week number located in $G$1 on the same sheet as the formula.

    D7 is the name of a person (player) on the sheet where the formula is located in cell F7.

    FullWPlStats!$A$1:FullWPlStats!$A$18000 is the range on another sheet where the name of the player will be found; one row for each game played in every match since week 1.

    FullWPlStats!$G$1:FullWPlStats!$G$18000 is the range where the number of games won by the player will be found for each game played in every match since week 1.

    For instance, if the player made 10 balls per match each week out of 18 weeks, and I want to report on how many balls they had made by week 14, I should get a result of 140. For week 15, the number returned should be 150 and so-on depending on the week chosen at $G$1.

    Any ideas? I'm thinking there would need to be a reference to only add values where the week number is less than or equal to the current week in $G$1 but I'm not sure how to write that in the formula.

    Thanks for any help you can provide.
    -------------
    Tony

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: How to combine SUMIF, INDEX and MATCH

    Try this version with SUMIFS

    =IF(D7="","",SUMIFS(FullWPlStats!G:G,FullWPlStats!A:A,D7,FullWPlStats!B:B,"<="&G1))

    That will sum column G when A matches the player in D7 and week number in B is <= week number in G1
    Audere est facere

  3. #3
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: How to combine SUMIF, INDEX and MATCH

    Bingo!

    Nicely done, daddylonglegs!!

    At first I thought it wasn't working because the result was 20 less than I thought it should be. However, I had forgotten about BYE weeks, of which there were 2 in the season. It's perfect.

    Thanks very much.

+ 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. Combine index match and sumproduct
    By Esrei in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-25-2013, 08:08 AM
  2. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  3. How Do I Combine OFFSET With INDEX MATCH
    By joconnor125 in forum Excel General
    Replies: 8
    Last Post: 06-15-2012, 04:47 AM
  4. [SOLVED] Combine MATCH and INDEX
    By SubwAy in forum Excel General
    Replies: 13
    Last Post: 05-31-2012, 11:53 AM
  5. How to combine the INDEX and MATCH functions?
    By Anna A in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-25-2010, 03:47 PM

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