+ Reply to Thread
Results 1 to 21 of 21

Count current streak of wins in a column. column contains blank cells

  1. #1
    Registered User
    Join Date
    09-26-2011
    Location
    Missouri, America
    MS-Off Ver
    Excel 2021
    Posts
    32

    Count current streak of wins in a column. column contains blank cells

    I have a column with "W" or "L". The data is sorted from top to bottom with the data on the bottom being the most recent. The column has blank cells that need to be ignored by the formula. I want the current streak of wins to be displayed. If the bottom most cell with data in it contain a "W" then there should be a current win streak displayed. However if the bottom most cell with data in it contains a "L" then there is no winning streak
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Count current streak of wins in a column. column contains blank cells

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

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Count current streak of wins in a column. column contains blank cells

    Another solution that works in Excel 2021:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Count current streak of wins in a column. column contains blank cells

    I made it too difficult for myself.

    This formula also works in Excel 2021:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    See attachment with all the 3 formulas.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-26-2011
    Location
    Missouri, America
    MS-Off Ver
    Excel 2021
    Posts
    32

    Re: Count current streak of wins in a column. column contains blank cells

    I tried all 3 formulas. I get the error "the formula contains unrecognizable text"

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Count current streak of wins in a column. column contains blank cells

    TEXTAFTER does not exist in Excel 2021. It's in 365 only.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Count current streak of wins in a column. column contains blank cells

    Try this,

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    09-26-2011
    Location
    Missouri, America
    MS-Off Ver
    Excel 2021
    Posts
    32

    Re: Count current streak of wins in a column. column contains blank cells

    A value used in the formula is of the wrong data type

  9. #9
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Count current streak of wins in a column. column contains blank cells

    See attachement. If this is wrong, point out the error.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    09-26-2011
    Location
    Missouri, America
    MS-Off Ver
    Excel 2021
    Posts
    32

    Re: Count current streak of wins in a column. column contains blank cells

    TEXTAFTER does not exist in Excel 2021. It's in 365 only.

    It is very strange. I can download the example spreadsheet. But if i edit the formula or try and copy paste the formula it just changes to #NAME? and shows error "The formula contains and unsupported function"
    Last edited by hammerb; 12-14-2023 at 12:17 PM.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Count current streak of wins in a column. column contains blank cells

    TEXTJOIN is included in Excel 2019.

  12. #12
    Registered User
    Join Date
    09-26-2011
    Location
    Missouri, America
    MS-Off Ver
    Excel 2021
    Posts
    32

    Re: Count current streak of wins in a column. column contains blank cells

    Is what i'm trying to accomplish not possible for Excel to do?

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Count current streak of wins in a column. column contains blank cells

    I'm sure it will be - be patient, please.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Count current streak of wins in a column. column contains blank cells

    Try this:

    =LET(x,LOOKUP(2,1/(A:A<>""),A:A),w,LOOKUP(2,1/(A:A="W"),ROW(A:A)),l,LOOKUP(2,1/(A:A="L"),ROW(A:A)),IF(x="W",COUNTIF(INDIRECT("A"&l&":A"&w),"W"),0))
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    09-26-2011
    Location
    Missouri, America
    MS-Off Ver
    Excel 2021
    Posts
    32

    Re: Count current streak of wins in a column. column contains blank cells

    This is the most baffling thing. I am going to upload my actual spreadsheet to this. I am obviously missing something and/or not understanding something. The page I am working on is named "Games", The cell i am trying to add the formula to is M1349. The column with the data is the AB column

    https://www.dropbox.com/scl/fi/88tr839o75iv50o9di0g3/OU-Record.xlsx?rlkey=n1k8dpphixwwh3n1or57u1ir2&dl=0

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Count current streak of wins in a column. column contains blank cells

    Please attach the workbook directly here.

  17. #17
    Registered User
    Join Date
    09-26-2011
    Location
    Missouri, America
    MS-Off Ver
    Excel 2021
    Posts
    32

    Re: Count current streak of wins in a column. column contains blank cells

    I have no clue what is wrong. I cannot upload the file "upload of file failed"

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Count current streak of wins in a column. column contains blank cells

    Make it smaller - exclude anything that's not relevant.

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Count current streak of wins in a column. column contains blank cells

    Try this:

    =LET(x,LOOKUP(2,1/(AB1:AB1341<>""),AB1:AB1341),w,LOOKUP(2,1/(AB1:AB1341="W"),ROW(AB1:AB1341)),l,LOOKUP(2,1/(AB1:AB1341="L"),ROW(AB1:AB1341)),IF(x="W",COUNTIF(INDIRECT("AB"&l&":AB"&w),"W"),0))

  20. #20
    Registered User
    Join Date
    09-26-2011
    Location
    Missouri, America
    MS-Off Ver
    Excel 2021
    Posts
    32

    Re: Count current streak of wins in a column. column contains blank cells

    That worked perfectly. Thank you very much

  21. #21
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Count current streak of wins in a column. column contains blank cells

    Glad to have helped.

+ 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. Formula to count consecutive wins/draws or max no loss streak
    By rooksboy1979 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-25-2019, 01:03 PM
  2. Count number of blank cells in a column next to date column
    By alimsab in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-12-2018, 04:30 PM
  3. [SOLVED] count blank cells in one column based on date in different column
    By IreneADS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2014, 09:58 AM
  4. [SOLVED] IF statement for current wins/losses streak
    By damianberry in forum Excel General
    Replies: 1
    Last Post: 11-15-2012, 05:25 AM
  5. Replies: 2
    Last Post: 10-04-2012, 03:19 PM
  6. Streak on Wins and Losses
    By palerider85 in forum Excel General
    Replies: 6
    Last Post: 10-24-2011, 01:05 AM
  7. Replies: 5
    Last Post: 08-05-2009, 02:43 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