+ Reply to Thread
Results 1 to 11 of 11

How to create an algorithm to detect the first two numbers of a lottery?

  1. #1
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    How to create an algorithm to detect the first two numbers of a lottery?

    How to create an algorithm to detect the first two numbers of a lottery?
    goal = find results that starts
    * with a double determine,

  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: How to create an algorithm to detect the first two numbers of a lottery?

    Stating the obvious but if we could do that, we could also find the second two numbers, and the third two....etc. and if we could do all of that most of us would be billionaires sunning ourselves in our idyllic mansion on some private tropical pacific island

    Please explain what you really mean.
    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 Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Re: How to create an algorithm to detect the first two numbers of a lottery?

    hello richard ok goal is to find
    * in the lotteries pick 3,4,5,6,7
    the first two numbers only
    * these ex 49/6
    first two numbers
    * 05 12 9 first two numbers bet in ascending order´
    * ex pick3 517 predict the digit 5,
    but richard the algorithm
    * will need to go to previous sweepstakes registration
    ex = 49/6
    02 05 23 25 36 48 = 02 05
    03 12 15 26 32 41 = 03 12
    10 12 16 25 32 45 = 10 12
    .....

  4. #4
    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: How to create an algorithm to detect the first two numbers of a lottery?

    Sorry, but I just donlt understand your explanation and requirement

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    To upload a file click the Go Advanced button at the foot of your post, look underneath the post area for the Manage Attachments section and take it from there.

  5. #5
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Re: How to create an algorithm to detect the first two numbers of a lottery?

    well we have left the list of all threes from 01 to 25
    * there are 2300 in total,
    * the macro will separate whose difference from the 1st digit
    * to the 3rd digit of each crack the middle number does not enter = ex = 01 02 03 = difference is 2
    the macro will only separate in the distances list
    * of 2,3,4,5, there are other distances but only those mentioned do not enter the study = differences 2,3,4,5
    * from 1st to 3rd digit of each triplet

  6. #6
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Re: How to create an algorithm to detect the first two numbers of a lottery?

    hello RICHARD=https://www.excelforum.com/attachment.php?attachmentid=635717&stc=1&d=1564951471

  7. #7
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Re: How to create an algorithm to detect the first two numbers of a lottery?


  8. #8
    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,460

    Re: How to create an algorithm to detect the first two numbers of a lottery?

    Please attach the file properly.
    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.

  9. #9
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Re: How to create an algorithm to detect the first two numbers of a lottery?

    Hello Richard.
    * separate only those with difference
    * of the values = 2,3,4,5
    https://www.excelforum.com/attachmen...1&d=1564952645
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: How to create an algorithm to detect the first two numbers of a lottery?

    I, too, am uncertain exactly what you need the algorithm to do. Elements that I can see.

    I5, O6, U7, and AC24 look like a simple subtraction formulas. I'm not sure whether these formulas should be based on the adjacent columns, or based on the first three columns. As a guess, I5 could be =$C5-$A5 (note the mix of relative and absolute references) and copied down column I and also copied into columns O, U, and AC.

    Reading between the lines, it then appears that the goal is to copy from columns A:C into the adjacent columns based on that difference. This could be a simple IF() function. For example, E5 could be =IF($I5=$F$3,A5,"n/a") or something like that.

    Is that close to what you are trying to do?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  11. #11
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Re: How to create an algorithm to detect the first two numbers of a lottery?

    hello , MrShorty, ok perfect,

+ 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. quads for lottery numbers
    By dragon66 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2014, 11:50 AM
  2. Need to create a randomized matrix/algorithm
    By BYizz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2013, 05:33 AM
  3. Lottery Numbers Matching
    By west7711 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-20-2013, 02:13 PM
  4. [SOLVED] creating lottery numbers
    By gencoglu27 in forum Excel General
    Replies: 5
    Last Post: 10-03-2011, 03:30 AM
  5. Excel 2007 : Lottery Numbers
    By mulligbo in forum Excel General
    Replies: 6
    Last Post: 08-30-2010, 09:41 PM
  6. Lottery Numbers
    By MyLawd in forum Excel General
    Replies: 7
    Last Post: 09-12-2008, 10:20 AM
  7. Lottery numbers
    By Donald in forum Excel General
    Replies: 6
    Last Post: 11-29-2006, 08:55 PM
  8. how do i use excel to check my lottery numbers
    By pat07734 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-17-2005, 02:06 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