+ Reply to Thread
Results 1 to 8 of 8

How to keep a score?

  1. #1
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    How to keep a score?

    I need the formula where I have the score which would be based on where the players input as I have "1" for where the games in the rows in the cells in column A have "2" inside them.

    And since these "games" will go on indefinitely, I presume I will want to archive sheets either in the same file or separately but I'd like the score to account for the entire history of the players. This would be my second question. Maybe just the first one would be enough for now.

    Thanks!
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to keep a score?

    Your sentence is a little confusing but paired with your example I think you mean this:

    Each column is a player. For each player, sum the values in that column that correspond to a header in column A ("game") that includes a "2".

    This requires an array formula in row 2. (For your Excel version it would help to give the commercial version [e.g., Excel 2019, Office 365] rather than the release identifier. It makes it easier to determine what functionality is available in your version.)

    Values as displayed
    A
    B
    C
    1
    score 1
    score 2
    2
    1
    0
    3
    game
    player 1
    player 2
    4
    a 2
    1
    5
    b
    1
    6
    c
    1
    1
    7
    d2
    Underlying formulas
    A
    B
    C
    1
    score 1
    score 2
    2
    =SUM(IF(ISNUMBER(FIND("2",Table2[game])),Table2[player 1],0))
    =SUM(IF(ISNUMBER(FIND("2",Table2[game])),Table2[player 2],0))
    3
    game
    player 1
    player 2
    4
    a 2
    1
    5
    b
    1
    6
    c
    1
    1
    7
    d2
    This is an array formula. After typing in the formula, do not hit ENTER--hit CTRL+SHIFT+ENTER. You have done it correctly if the formula in the formula box has {braces} around it. You cannot type in the braces; they are just an indicator that it is an array formula.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: How to keep a score?

    Thanks. Is there a way to paste it under new players with the absolute(game) and relative(player #) columns pasted in correctly? I'm using android version of excel.
    Excel 1.0.1 (16.0.14326.20140) (Android)
    Excel 2010 14.04.4760.1000

  4. #4
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: How to keep a score?

    Also, can I substitute SUM with COUNTIF if I don't actually want the sum of the numbers in the cells but just a count of the cells with data in them? Thanks

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to keep a score?

    I don't know anything about what is supported on Android. I have updated the formula for counts, and here is the whole file to try on Android. You will have to update the formula for each additional column because it uses structured references. But the advantage is that it doesn't matter how many rows are in your table.
    Attached Files Attached Files

  6. #6
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: How to keep a score?

    Thanks!....

  7. #7
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: How to keep a score?

    Could I bother to help out with another modification? I want the score to count now as long as the corresponding cell in this new "odds" column value is positive. This is related to betting if this helps any to see what I'm doing here but not necessary. Hope it doesn't require a whole different set of functions. I was trying to do this step by step as simply as possible but it's not that simple I guess or I'm making it complicated. What do ya think? Looks like a "countif/sum(if" corresponding cell in x column >0 and idk how you'd do that exactly. Thanks!
    Attached Files Attached Files

  8. #8
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: How to keep a score?

    Oh never mind, I found this elsewhere:

    =SUMPRODUCT((ISNUMBER(SEARCH("1",$A4:$A12)))*($B4:$B12>0)*(C4:C12>0))

    Which also allows me to keep those two columns absolute.

+ 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. Replies: 9
    Last Post: 01-20-2016, 08:59 AM
  2. Replies: 1
    Last Post: 11-24-2013, 07:53 AM
  3. Moving a calclated score to a master score sheet and ranking the scores into placings
    By Jongleur69 in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 04-22-2013, 11:53 PM
  4. Replies: 2
    Last Post: 03-20-2012, 06:30 PM
  5. Pulling test score based on date, not highest score.
    By PowerSchoolDude in forum Excel General
    Replies: 2
    Last Post: 12-01-2009, 06:42 PM
  6. formula to work out score based on score system
    By Nathaniel82 in forum Excel General
    Replies: 5
    Last Post: 08-10-2009, 11:25 AM
  7. Converting a Number score to an equivalent Letter score
    By cgurr1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-24-2008, 12:42 PM

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