Hi folks,
I have a group of 120 sets of numbers that I always buy in my hometown lottery. I mentioned set because these 120 sets consist of 6 numbers per each set (eg. 1,2,3,4,5,6) The numbers within each set ranges from 1-49, however there are only 6 numbers in any set. The problem I'm facing is, I would like to find if there are any matches, in any of the 120 sets every time I play the lottery. It does not need to be an exact match of all 6 numbers. The reason is because you still get a win for matching 4 or 5 or 6 numbers. When I try to search in Excel, sometimes the 1 or 2 numbers in a set does not match my search query but the remaining 4 or 5 numbers does. When this happen, it shows that there is no match. Therefore, how do I search for similar numbers in a string or set, and the results would show the sets that match 6, or 5 of 4 or 3 of the numbers in my search query in any particular order i.e. without following any particular order? I buy the same 120 set of 6 numbers all the time and have these numbers saved one set per cell in an excel file.
Eg. I bought 120 sets of numbers. 5 of the sets had 3 or more matching numbers. How do I find these 5 sets out of the 120? The winning numbers are 2,6,7,23,25,34 and this would also be the string I am using to search for.
2,5,7,20,25,34 ---> 4 matches
2,6,9,23,25,34 ---> 5 matches
1,8,15,23,25,34 ---> 3 matches
2,6,7,23,25,34 ---> 6 matches
3,6,7,21,25,34 ---> 4 matches
The bold numbers are the ones that match my search query.
When I search for 2,6,7,23,25,34 which are the winning numbers, because only one set has all 6 numbers, that is the only one set that comes out. How do I get to see the other 4 sets which do not have all 6 matching numbers, but rather only 3, 4 or 5 matching numbers.
Hope someone is able to help me out. Thank you very much and best regards
Bookmarks