Lottery verification

fvisions

Board Regular
Joined
Jul 29, 2008
Messages
54
I have an excel program where I count the numbers for the past year then use the count to pick my lottery numbers. I have won small amounts for the past year every week but never amounts over $100 so now I would like to refine my program to look at the past years drawings and compare it to my combination of numbers to see where I need to twick my selection. I will try and setup an example of the data info below.
Winning numbers listed as:
Date 1 2 3 4 5 Ball
11/7/19 9 10 15 44 48 6

My ticket numbers; 8 10 15 43 52 5

I want to compare my numbers against winning numbers listed in A2:G106 to see on which week my numbers in this full set appeared, example in week 10/17 the 8, 10, & 52 appeared.
Can someone help with a vba to something to compare the full data set (col A - G) to a set of 5 numbers together?
Thank you in advance if you can. April
 

Some videos you may like

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

mole999

Moderator
Joined
Oct 23, 2004
Messages
10,099
Office Version
2019, 2016, 2013
Platform
Windows
if you look at lottery odds it becomes apparent your wins are pure chance, once you cover off every potential number set you will win all the prizes but the more winners the less the return
 
Last edited:

fvisions

Board Regular
Joined
Jul 29, 2008
Messages
54
Yes and No in my agreement with you. But I dont want to use this forum to debate the odds of the lottery, I want to use this forum to twick my programming, the thought process is all my own. Once I win the Jackpot, I will let you know, in the mean time thank you for opinion.
 

Forum statistics

Threads
1,089,421
Messages
5,408,129
Members
403,186
Latest member
123hpeinstall

This Week's Hot Topics

  • help please
    SORRY NOT ANY GOOD AT EXCEL SO HELP WOULD BE MUCH APPRECIATED this formula is in a sheet called ignore...
  • two formulas needed
    Hello, I'll try my best to explain this: First formula needed in Sheet1 cell A2: If Sheet1 cell B2 = Sheet2 cell B2 then return a 1. If not then...
  • Dynamic Counts
    Good afternoon, we are tidying up some data & the data seems to be growing quicker than we are tidying it up! What we confirm (by reviewing it...
  • Help Excel formula eliminate duplicate values and keep only 2 identical rows.
    as picture below column A has a duplicate value. but the values are not the same as the rule. sometimes 4 rows, sometimes 10 rows or 7 or 9...
  • Macro Compile Error Sub or Function not defined
    Hello, I am trying to run macros from a validation list, all macros have been created and run perfectly on there own but I'm getting a compile...
  • Last row combined with Current Region VBA
    I'm generally happy finding the last row of data through something like Lastrow = Cells(Rows.Count, "D").End(xlUp) but I don't always receive data...
Top