+ Reply to Thread
Results 1 to 7 of 7

Help me win the Lottery...

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    Help me win the Lottery...

    So I thought it would be interesting to leverage the help and insight of users on the forum to help build a Macro which would generate lotto #'s based on the results from the past 30 days.

    Attached is a spread sheet of the New Jersey past winning lottery #'s...

    The only thing I've done to it so far is use the "text-to-column" feature in excel to separate the #'s.

    There are 30 rows of past winning numbers (30 past winning results).

    Here's what I'm thinking my macro should do...

    1. Go through each column and find

    -The number that appears most frequent
    -The number that appears less frequent
    -The average of the column

    And based on the average returned, pick a number but somehow correlate it to the most/less frequent number.

    2. Go Across each Row and find the average of the Number

    Do you guys know any cool data manipulation functions in Excel that would give more perspective on the data?

    I intend to play the numbers and I will update this post with my results...

    please share your thoughts.

    lets get this money Baby!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help me win the Lottery...

    Hi,

    Unless you know or suspect that there is some inbuilt bias in the machine/software that produces the numbers then you are wasting your time trying to analyse it. It's a random process. The operative word being random.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Help me win the Lottery...

    Hi Swade,

    I wouldn't bet on the lotto as the odds are expensive. To learn Excel I'd play with the numbers. See the attached and see if you can figure what I've done.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    Re: Help me win the Lottery...

    Quote Originally Posted by MarvinP View Post
    Hi Swade,

    I wouldn't bet on the lotto as the odds are expensive. To learn Excel I'd play with the numbers. See the attached and see if you can figure what I've done.

    Did you make excel pick a random # within the range of the row?

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Help me win the Lottery...

    Nope - You can do that but random means random. Picking a random number doesn't insure any success....

    Did you understand how I counted each number picked? Does the order of the numbers matter in the lotto?

    Read this for more on the lotto.

    http://www.career-evolution.net/why-...play-lotto.php

  6. #6
    Registered User
    Join Date
    10-08-2012
    Location
    Wellington NZ
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Help me win the Lottery...

    I doubt anyone would expect to win the lottery with excel but, a few thoughts...

    Group the numbers and consider their frequency..primes, even/odd, deciles

    Work out the number ranges to cover, say 50,000 lines and generate 6 random numbers. If you could consistently get the random line in your 50,000 lines i'd consider that a success.

  7. #7
    Registered User
    Join Date
    09-09-2014
    Location
    Johannesburg
    MS-Off Ver
    2010
    Posts
    1

    Re: Help me win the Lottery...

    =+OFFSET('Powerball Numbers'!$M$2,0,ROWS($A$1:A1),1,1)
    =+SMALL(A2:B2,1)&-SMALL(A2:B2,2)
    =+OFFSET('Powerball - 2Combos'!$D$1,COLUMNS($N$1:N1),0,1,1)
    =+COUNTIF(N3:N1048576,2)
    =+COUNTIF($C3:$G3,IF(ISNUMBER(VALUE(LEFT(N$1,2))),LEFT(N$1,2),LEFT(N$1,1)))+COUNTIF($C3:$G3,IF(VALUE(RIGHT(N$1,2))>=10,RIGHT(N$1,2),RIGHT(N$1,1)))

    Use these formulas for lottery combinational play. [email protected]

    Use summation, frequency and some other statistical tools

+ 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. Weighted Lottery
    By Willis in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-17-2016, 01:03 PM
  2. lottery
    By heramiah in forum Excel General
    Replies: 14
    Last Post: 02-23-2010, 07:27 AM
  3. [SOLVED] RE: Lottery exercise
    By Gary''s Student in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-05-2005, 03:25 PM
  4. [SOLVED] lottery drawing
    By nmarenc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-18-2005, 02:25 AM

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