+ Reply to Thread
Results 1 to 5 of 5

Finding streaks in large sets of numbers

  1. #1
    Registered User
    Join Date
    11-06-2009
    Location
    sydney, australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Finding streaks in large sets of numbers

    Hello.
    At school we are studying gambling, me and my friends chose to do rouette, what we have is a list of numbers and we are trying to calculate streaks of all the Red/Black/Odd/Even/High/Low

    in column A we have all the numbers then we have pretty much made a table

    we want to know what the streaks are for each of them in the setup eg:
    -------------------------- R B O E H L
    1 in a row
    2 in a row
    ...........
    20+ in a row..

    is this possible?

    Just so you know
    1,3,5,7,9,12,14,16,18,19,21,23,25,27,30,32,34,36 are RED and the other numbers are black besides zero

    Also the number zero would count for the current streak

    Thanks heaps from
    Jish, Tomm, harry, crystal, julia, cat and trevor
    Last edited by Jish; 02-13-2010 at 10:33 PM. Reason: changing title

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Finding streaks in large sets of numbers

    Hi, thanks for changing the title.

    See what you can do with the attached. When you hit F9, you'll get a fresh set of numbers. The streaks for each quality are calculated in columns E to G. I've added some colour coding to highlight the streaks.

    Note: this file uses the RANDBETWEEN() function to create the values in column A. This formula only works in Excel 2003 if you activate the Analysis Toolpak add-in. If you decide to enter the numbers in column A manually, Randbetween() and the Analysis Toolpak will not be reqiured.

    Please let me know if this is something you can work with.

    cheers

  3. #3
    Registered User
    Join Date
    11-06-2009
    Location
    sydney, australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Finding streaks in large sets of numbers

    yes we can work with this, but we were also looking for a way to calculate the number of streaks, e.g how many times 1 in a row came up or 2,3,4,5 in a row? i guess this would be difficult?

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Finding streaks in large sets of numbers

    some other ideas here
    http://www.excelforum.com/excel-work...ette-data.html
    but i cant for the life of me remember how i did it lol
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Finding streaks in large sets of numbers

    Like this, then?

    hth

+ 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