+ Reply to Thread
Results 1 to 14 of 14

Know of any formulas or VBA for some lottery prediction tasks?

  1. #1
    Registered User
    Join Date
    08-06-2019
    Location
    Cebu
    MS-Off Ver
    2007
    Posts
    36

    Unhappy Know of any formulas or VBA for some lottery prediction tasks?

    Permission to post, admins...

    As per advice of a moderator, I did a search related to lottery and pulled up search results of topics totally unrelated to what I'm specifically asking for. If it isn't a topic about pick-3, it's either about random number generation or predicting numbers from a really huge pool - like 15 numbers out of 25, or 5 numbers out of 90...

    So, I'm wondering if anyone here knows some VBA formulas or Excel functions for the following tasks:

    a) Counting the frequency of each number in a lottery game

    b) Determine which are "hot" numbers, "cold" numbers and "overdue" numbers within a certain draw period in a lottery game

    c) Know how many times a number is paired with another number

    Hope you would consider helping me out in this...

    PS - Due to earlier circumstances, was forced to post this concern in other Excel forums. Here's the link to the other forum: https://www.mrexcel.com/forum/excel-...recasting.html
    Last edited by angExcel-entflea; 08-06-2019 at 11:44 AM. Reason: Further clarification and adjustment to forum rules

  2. #2
    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,739

    Re: Know of any formulas or VBA for some lottery prediction tasks?

    I suggest you find all posts by forum member Jorel - there are over a thousand all to do with predicting lottery outcomes.

    https://www.excelforum.com/search.php?searchid=9760691
    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.

  3. #3
    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,739

    Re: Know of any formulas or VBA for some lottery prediction tasks?

    I am sorry that Jorel's threads did not prove of any use to you.

    Please continue here now.

    For your information:
    I did NOT instruct you not to post here. I merely pointed you to some threads that I thought might be of interest to you. This thread is and has always been open.

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

    Re: Know of any formulas or VBA for some lottery prediction tasks?

    Are you required to use VBA formulas only, or will you consider spreadsheet formulas?

    a) would probably be a COUNTIFS() (or maybe a FREQUENCY()) function: https://support.office.com/en-us/art...c-aa8c2a866842
    Even if I were doing this in VBA, I would probably call the worksheet function from VBA: https://docs.microsoft.com/en-us/off...n-visual-basic

    b) A lot of this question depends on exactly what "hot", "cold", etc. actually means. My guess (as someone who does not do any serious gaming) is these categories involve some comparison between the results of step (a) and theoretically expected frequencies. Exactly what that looks like probably depends on what your table of theoretical frequencies looks like (and whether or not this part of the question includes calculating those theoretical frequencies). Assuming that the question does not include calculating the theoretical frequencies, I would expect this question to involve either IF() or CHOOSE() or a lookup (like VLOOKUP()) function.

    c) Also looks like an application for COUNTIFS(). The only thing really different from (a) is that you will need a table of pairings that you want to count.

    Excel function help files by category: https://support.office.com/en-us/art...rs=en-US&ad=US
    alphabetical list: https://support.office.com/en-us/art...6-c6d90033e188

    I'm not sure exactly what parts of these tasks you will need help with, but let us know what you need help with and we'll see how we can help.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    08-06-2019
    Location
    Cebu
    MS-Off Ver
    2007
    Posts
    36

    Re: Know of any formulas or VBA for some lottery prediction tasks?

    Reply intended for Ms. AliGW

    Though I have already written this in the other thread, I am re-posting this reply as an apology if my previous statement bore some resentment on my part. If Jorel has come across this, I hope he would know about what I'm asking for. If not, I hope he can refer me to someone in this forum, or outside of it, who can... Point taken about your FYI - mea culpa...
    Last edited by angExcel-entflea; 08-06-2019 at 10:30 AM. Reason: Further Clarification

  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,739

    Re: Know of any formulas or VBA for some lottery prediction tasks?

    Thanks for the apology - not needed, but appreciated.

    Have you seen Mr Shorty's post above?

  7. #7
    Registered User
    Join Date
    08-06-2019
    Location
    Cebu
    MS-Off Ver
    2007
    Posts
    36

    Re: Know of any formulas or VBA for some lottery prediction tasks?

    Yes - am noting details in his reply. Thanks for your help, both of you

  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,739

    Re: Know of any formulas or VBA for some lottery prediction tasks?

    Administrative Note:

    Unfortunately it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new here, I am providing that link for you this time.)

    https://www.mrexcel.com/forum/excel-...recasting.html

  9. #9
    Registered User
    Join Date
    08-06-2019
    Location
    Cebu
    MS-Off Ver
    2007
    Posts
    36

    Re: Know of any formulas or VBA for some lottery prediction tasks?

    Reply intended for Ms. AliGW:

    Okay, so I'll post the link from that forum in the original post?

    While the misunderstanding in this forum occurred, I was forced to seek other forums - wasn't expecting at first that this concern of mine would be answered....

    I'm editing the OP (original post) to include the link...

  10. #10
    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,739

    Re: Know of any formulas or VBA for some lottery prediction tasks?

    No, it's fine - as I said in my post, I've provided the link for you.

    I was forced to seek other forums
    Give over ... You'd jumped to conclusions and thrown a hissy fit.

    Anyway, it's not the cross-posting that is the issue - in itself, it's perfectly fine. We just require you to disclose where else you've asked the question.

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

    Re: Know of any formulas or VBA for some lottery prediction tasks?

    Then you have to think about filters !! mainly the dynamics,
    * according to your lottery characteristic,
    filter by limit of previous draws, by last digit, from 0 to 9. by cycles, by repetitions and absences, from last to next, etc., even so it can only reach a certain point in 70% to 80%, will always have the random factor is like the pareto law 75% 80% 25% to 20% take a test on 49/6
    * will hit from 3.4 numbers, this is where math or statistics can go !!!, this is why sometimes a random game hits a prize, there are many variables to master. because the hit space
    less than wrong, example in a game 59/5
    * You have 54 to make mistakes and only 5 to get it right, you have to think about filtering to make mistakes because it is 54/5 the fight

  12. #12
    Registered User
    Join Date
    08-06-2019
    Location
    Cebu
    MS-Off Ver
    2007
    Posts
    36

    Re: Know of any formulas or VBA for some lottery prediction tasks?

    < reply intended for jorel and Ms. AliGW >

    I just had this observation:

    Assuming that a certain draw period - let's say "10" - was sampled for hot, cold and overdue number determination, the following would say...
    a) hot numbers follow the formula: "if x >= 10 = hot"
    b) cold numbers follow the formula: "if x < 10 = cold"
    b) overdue numbers follow the formula: "if x = 0 = overdue"

    Is this line of thought correct?
    If yes, how can this be translated into a user-defined VBA function code?

  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,739

    Re: Know of any formulas or VBA for some lottery prediction tasks?

    I think it's time you provided us with a set of sample data. What you are describing does not require VBA. Provide some sample data in the format you expect to be working with it (rows of lottery draws) and we can better advise.

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

    Re: Know of any formulas or VBA for some lottery prediction tasks?

    Not sure what "x" represents, but I can go ahead and assume the value exists. I would guess that x represents some kind of count, but that is just a guess. Assuming that x is already calculated, the checks you describe could easily be performed using Excel's built in IF() function: https://support.office.com/en-us/art...c-aa8bbff73be2 Starting from low to high (assuming x cannot be less than 0), =IF(x=0,"overdue",IF(x<10,"cold","hot")) where x is a reference to a cell containing the desired analysis. Does that help?

+ 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. Percentage formulas to calculate individual & overall % tracking on tasks
    By loz1206 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-19-2018, 12:58 AM
  2. [SOLVED] Lookup tasks and sort by date and exclude completed tasks
    By AlexSchmidt in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-19-2017, 04:47 PM
  3. 4digit lottery prediction
    By utmw2016 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 09-27-2015, 06:22 AM
  4. [SOLVED] Tasks to complete between a start and end date help with percentage and formulas
    By Excelnoub in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-06-2014, 07:10 AM
  5. Help? Attempting to setup formulas to accomplish various tasks...
    By Astrin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2012, 02:56 PM
  6. Merging Tasks w/ Parts ordered for tasks
    By code870 in forum Excel General
    Replies: 0
    Last Post: 06-19-2011, 01:43 PM
  7. Outlook Tasks - Adding tasks from a worksheet added today or after
    By dpotta in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-28-2010, 07:15 AM

Tags for this Thread

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