+ Reply to Thread
Results 1 to 6 of 6

Winning Streak by Month...

  1. #1
    Registered User
    Join Date
    09-27-2007
    Posts
    61

    Winning Streak by Month...

    If I have the following data...

    JAN W
    JAN W
    JAN L
    JAN W
    JAN L
    JAN L
    JAN L
    JAN W
    JAN W
    JAN W
    JAN W
    FEB W
    FEB L
    FEB L

    Is it possible to get the largest winning streak for any month? For example, in JAN it would be 4. Typically, I'll have about 1,000 entries per month.

  2. #2
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    See this thread.

    http://www.excelforum.com/showthread...ecutive+values
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  3. #3
    Registered User
    Join Date
    09-27-2007
    Posts
    61
    Sick skills... The formula was awesome.

    MAX(FREQUENCY(IF(A1:A3000<0,ROW(A1:A3000)),IF(A1: A3000>=0,ROW(A1:A3000))))


    What about if I try to figure out the consecutive streak per month? Let's say that the month is in COL A, the result is in COL B....

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Assuming month is text not a formatted date try this formula

    =MAX(FREQUENCY(IF(A1:A100="Jan",IF(B1:B100="W", ROW(A1:A100))),IF(A1:A100="Jan",IF(B1:B100<>"W", ROW(A1:A100)))))

    confirmed with CTRL+SHIFT+ENTER

  5. #5
    Registered User
    Join Date
    09-27-2007
    Posts
    61
    Daddylonglegs,

    You are the closest I have come to blasphemy...

    Sik, sik, sik...

    I know you don't get any sleep; I know what you do when you sit on the toilet; I know what you dream about; I know what you talk to your mate about.

    Obviously, the formula worked. Thanks.

    -Erick

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

    Yes, it's certainly a thing of great beauty........but it's still only a formula, don't get carried away.......

+ 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