+ Reply to Thread
Results 1 to 8 of 8

Group scores based on value in first column

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    Malta
    MS-Off Ver
    Excel 2010
    Posts
    5

    Group scores based on value in first column

    I am trying to analyse a set of scores of different doubles tennis tournaments - new tournaments and new players are continuously being added and so need some dynamic way to analyse. I would like to extract sort of a ranking system based on the scores by each player and one way to do so is to analyse the scores by tournament. Basically the same players play in different tournaments and i want to be able to know who performs better than others i.e. get better total scores during a tournament.

    The attached gives an example of the data i have as well as the result i would like to achieve. It does not really matter if a formula system or a pivot solution is provided as long as i achieve the result, and can add to it as new data is populated. I have been trying all sort of solutions using pivots, matches, lookups etc but no luck yet.

    Any help is greatly appreciated.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Group scores based on value in first column

    Hello,

    I used 2 SUMPRODUCT to do the job.

    See if the attached file is what you are looking for.

    P/s: Your expected results in some place is not accurate by the way.
    Attached Files Attached Files
    (copy pasta from Ford)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools

    Regards,
    Lem

  3. #3
    Registered User
    Join Date
    07-31-2012
    Location
    Malta
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Group scores based on value in first column

    Hi Lemice,

    Look like it's perfect for my requirements ! Thanks so much.

    A small question: why did you use the reference $C$4:$J$11 in cell B18? isn't $C$4:$I$11 enough?

    Thanks once again. really appreciated.

  4. #4
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Group scores based on value in first column

    Thanks for the feedback. Yes you are right, from C to I is enough.

    I have a habit of adding extra column so the references match each other (same number of column for both reference on SUMIF).

    Anyway, I'm glad that I could help. Let me know if you still have any trouble.

    Have a nice day.

  5. #5
    Registered User
    Join Date
    07-31-2012
    Location
    Malta
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Group scores based on value in first column

    Good tip on the references Will start doing that myself!

    Nice day to you too.

  6. #6
    Registered User
    Join Date
    07-31-2012
    Location
    Malta
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Group scores based on value in first column

    Hi Lemys,

    All working fine - but am still trying to figure out how the sumproduct equation is pulling the numbers from the table ! ...

  7. #7
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Group scores based on value in first column

    For the first SUMPRODUCT, I used it to calculate the number of time a player participated in a tournament, for example, this is the one in Cell C18
    Please Login or Register  to view this content.
    What it does is combine value in A4 to A11 with B4 to H11 and create an array of player + tournament name (for e.g "AnnaTournament 1", "BertTournament 2", and so on), then compare it with the player name and tournament you are checking (on Cell C18, it's "AnnaTournament 1"). The "--" added in front of it makes the logic statement return 1 or 0 instead of TRUE or FALSE, thus making them sum-able. If this SUMPRODUCT returns 0, obviously Anna does not participated in Tournament 1, right?

    With the same idea, I used the second SUMPRODUCT to calculate the point
    Please Login or Register  to view this content.
    It's basically the same, with the added reference from C4 to I11, is where the points are. When the reference of player combined with a tournament name is found on a specific row / column, it will return the corresponding value of points in the same row but in the column next to it (that's why for the first part of the Cell Reference is from B4 to H11, but the later part is C4 to I11. Also, this is why I keep the habit of adding extra column to keep the reference match).

    I'm sorry if I have confused you because I am not that good with explanation. What you can always do is to copy straight one of the SUMPRODUCT on the formula, paste it else where to see what it's doing, and try changing the reference.
    Last edited by Lemice; 04-25-2013 at 05:22 PM.

  8. #8
    Registered User
    Join Date
    07-31-2012
    Location
    Malta
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Group scores based on value in first column

    thanks for explanation - perfectly understood.. i had not understood the array creation part, but clear now.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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