+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Count Consequtive Wins/Losses

  1. #1
    Registered User
    Join Date
    11-15-2011
    Location
    Beaverton, OR
    MS-Off Ver
    Excel 2007
    Posts
    4

    Count Consequtive Wins/Losses

    Help Needed

    I would like to be able to have a formulated count for consequtive wins or losses for each person in a data range. Below is some sample data that I would use. I was thinking I needed to use something with Countif but at this point it's a little too complicated for me. What formula could I use to accomplish what I want? Your help is appreciated, Thanks

    Jack
    Attached Files Attached Files

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

    Re: Count Consequtive Wins/Losses

    Hello Jack, to you want the biggest losing/winning streak?

    If so this "array formula" will give the biggest losing streak for Jeff (3 in your example)

    =MAX(FREQUENCY(IF(A$2:A$41="Jeff",IF(B$2:B$41="L",ROW(B$2:B$41))),IF(A$2:A$41="Jeff",IF(B$2:B$41="W",ROW(B$2:B$41)))))

    confirmed with CTRL+SHIFT+ENTER

    For winning streak swap the "W" with the "L"
    Audere est facere

  3. #3
    Registered User
    Join Date
    11-15-2011
    Location
    Beaverton, OR
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Count Consequtive Wins/Losses

    What I would like is to have the current streak for each person, whether it be a current win streak or losing streak and have those numbers displayed in cells D5:E5 for Jeff, D9:E9 for Jason, D13:E13 for Jack etc. Hope that helps

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

    Re: Count Consequtive Wins/Losses

    What does "current streak" mean? Where are the latest games, those at the top, those at the bottom?

  5. #5
    Registered User
    Join Date
    11-15-2011
    Location
    Beaverton, OR
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Count Consequtive Wins/Losses

    Sorry I didn't clarify, it'd be going from top (old) to bottom (new). I will have them in a table with current dates being added to the bottom. So for example the cell A2 would be 10/15/11 and cell A39 would be 11/10/11

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

    Re: Count Consequtive Wins/Losses

    OK try this formula for Jeff winning streak in D5

    =IFERROR(IF(LOOKUP(2,1/(A$2:A$100=D3),B$2:B$100)="L","",COUNTIF(INDEX(A$2:A$100,IFERROR(MATCH(2,INDEX(1/(A$2:A$100=D3)/(B$2:B$100="L"),0)),0)+1):A$100,D3)),"")

    In E5 use the same formula except change the two "L"s to "W"s. Only one at most will display a value

  7. #7
    Registered User
    Join Date
    11-15-2011
    Location
    Beaverton, OR
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Count Consequtive Wins/Losses

    That worked great! Thanks for your help

+ 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