+ Reply to Thread
Results 1 to 14 of 14

Identify recurring subsets of numbers within multiple lottery draws

  1. #1
    Registered User
    Join Date
    04-03-2019
    Location
    warrington
    MS-Off Ver
    2010
    Posts
    7

    Identify recurring subsets of numbers within multiple lottery draws

    Please Login or Register  to view this content.

    The above is an example of a table of previously drawn lottery numbers and I am trying to work out what formula to use that would show how many times 2 or more numbers have been drawn together but can't seem to get it to look across multiple columns... for example 17 & 28 have been drawn together but are in different columns when they have been drawn....is there a formula for this or am i just grasping at nothing here... fairly new to excel so treat me like a noob when explaining.

    Any help greatly appreciated

    Regards

    Renoldy891
    Last edited by 6StringJazzer; 04-03-2019 at 03:01 PM. Reason: code tags to preserve spacing; updated title to reflect question instead of answer

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Identify recurring subsets of numbers within multiple lottery draws

    Hmm.
    I've solved this like:
    Let say that data are in A:E. So, in column F I concatenated all data with comma (like 26,29,37,39,44 for 1st row). Does not matter that CONCATENATE/TEXTJOIN or simple =A1&","&.....
    Then numbers to find (let say H1 & I1) I've also concatenated BUT with * (wildcard) as separator (like *17*28*) BE SURE THAT STAR is on start and end.
    and now is easy:
    into cell G1:

    Please Login or Register  to view this content.
    $K$1 is cell with wildcarded string numbers to find.
    Attached Files Attached Files
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Identify recurring subsets of numbers within multiple lottery draws

    Hello Renoldy891. Welcome to the forum.

    In that attached please find this formula in G2:K6
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  4. #4
    Registered User
    Join Date
    04-03-2019
    Location
    warrington
    MS-Off Ver
    2010
    Posts
    7

    Re: Identify recurring subsets of numbers within multiple lottery draws

    This is mind blowing.. I don't understand how your mind works but i appreciate the way it does. Whilst this is fantastic and I am grateful, it only seems to pull info from the immediate line above. What I am trying to achieve is something that would check the whole sheet of approx 1000+ lines, for example if 17 and 28 came out together further down the sheet, it would identify it as a repeated combination

  5. #5
    Registered User
    Join Date
    04-03-2019
    Location
    warrington
    MS-Off Ver
    2010
    Posts
    7

    Re: Identify recurring subsets of numbers within multiple lottery draws

    Hi Koko, Thanks for the reply... I can't see the reply i posted before so not sure if i sent it...that seems to have done the job, it's a bit varied from what i pictured but have got the hang of changing numbers around to show result.

    regards
    Ren

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Identify recurring subsets of numbers within multiple lottery draws

    Quote Originally Posted by Renoldy891 View Post
    ... it only seems to pull info from the immediate line above. What I am trying to achieve is something that would check the whole sheet of approx 1000+ lines, for example if 17 and 28 came out together further down the sheet, it would identify it as a repeated combination
    The distance (rows down) shouldn't affect the output. Try forcing some numbers to replicate that and let me know.
    Last edited by FlameRetired; 04-04-2019 at 06:01 PM.

  7. #7
    Registered User
    Join Date
    04-03-2019
    Location
    warrington
    MS-Off Ver
    2010
    Posts
    7

    Re: Identify recurring subsets of numbers within multiple lottery draws

    ok was gonna send 20 lines that have 4 & 30 as the common repeats....but can i find the attach option....nope,sorry, any ideas how to attach a file

  8. #8
    Registered User
    Join Date
    04-03-2019
    Location
    warrington
    MS-Off Ver
    2010
    Posts
    7

    Re: Identify recurring subsets of numbers within multiple lottery draws

    scartch that hopefully this sends
    Attached Files Attached Files
    Last edited by Renoldy891; 04-04-2019 at 06:21 PM. Reason: additional info to add

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Identify recurring subsets of numbers within multiple lottery draws

    So it does.

    Hmm. That is unexpected.

    I have another solution but is won't handle more than about 20 rows ... and it is a beast.

    I'll have to think on this one a bit.

  10. #10
    Registered User
    Join Date
    04-03-2019
    Location
    warrington
    MS-Off Ver
    2010
    Posts
    7

    Re: Identify recurring subsets of numbers within multiple lottery draws

    Thanks Flame. Just so you know there is no rush on this.... When i pasted it, I kinda got the idea of what you were trying ( for some reason the coloured boxes make more sense than the formula itself ) I just thought that expanding the search parameters to the whole sheet might make it it look as a whole regardless of size....but i defer to your wisdom as I am probably oversimplifying what each part does. I feel this may be a lifetime project like the theory of relativity etc

    I really do appreciate the help...and if it helps to win me some money I will be back in touch to give you a share lol

    Ren

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Identify recurring subsets of numbers within multiple lottery draws

    Been working on this one. It is challenging.

    I have about 3 variations on one approach that treats 2 matching/3 matching/4 .... etc separately and you will likely want separate sheets (workbooks?) for each. They are all array formulas. Using these on 1,000 rows (20-30 columns of output) will take a l-o-n-g time to calculate if Excel can handle it at all. I have not found a work around for that. It will also create file bloat.

    I have another that returns all matches greater than 1, but it doesn't organize in an informative way. i.e. they are not grouped according to 2 match, 3 match etc. So far I have not found a work around for that either.

    Please let us know which output you favor.

    RE: the performance hits and file sizes. For those reasons I don't recommend any of these. If some one else doesn't come up with acceptable formula solution you might want to consider asking a Moderator or Administrator to move this thread to the VBA or Pivot table(?) sub-forum. VBA/Pivot may have tools to handle the logic more efficiently. Please do not do this yourself. That's called double posting.

    Please see the attached. There are 5 sheets. 'MATCH-MODE.MULT', 'COUNTIF-MODE.MULT', 'MATCH-MATCH - 2', 'MATCH-MATCH - 3)' and 'MATCH > 1'.
    The first four have 2 helper rows and a helper cell. The fifth one does not. The MATCH-MATCH ones perform noticeably faster.

    The formulas (array entered) in Sheet order are
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 04-08-2019 at 02:41 PM.

  12. #12
    Registered User
    Join Date
    04-03-2019
    Location
    warrington
    MS-Off Ver
    2010
    Posts
    7

    Re: Identify recurring subsets of numbers within multiple lottery draws

    Hey Flame, Thanks for getting back to me.

    Yeah I think you may be right, whilst it is kind of doing what it needs to, it is a very messy output. I notice you are a moderator, would it be possible for you to post this in the correct forum?

    Again, thanks for the attempt, it has been greatly appreciated

    Ren

  13. #13
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Identify recurring subsets of numbers within multiple lottery draws

    Will do, and you are welcome.

    I will move your thread to the VBA forum.

    If you later determine that is not the appropriate forum let me know. We might try moving to the Charting & Pivots forum. They do some amazing things there as well.

    This is a challenging project. So in the meantime I may continue working on another formula solution.

  14. #14
    Registered User
    Join Date
    03-26-2023
    Location
    canada
    MS-Off Ver
    2019
    Posts
    1

    Re: Identify recurring subsets of numbers within multiple lottery draws

    Re: Identify recurring subsets of numbers within multiple lottery draws

    I am looking to identify a recurring subsets of numbers from keno lottery.
    I have over 500 results of draws with 20 numbers per draw and I would like to identify each set of recurring 10 numbers within all 500 draws.

    can anyone help me here?

    For example see below;

    1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17.18.19.20

    21,22,23,24,25,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41

    21,22,23,24,25,26,27,28,29,41,42,43,44,45,46,47,48,49,50,51

    1,2,3,4,5,6,7,8,9,10,51,52,53,54,55,56,57,58,59,60,


    the recurring 10 would be 1,2,3,4,5,6,7,8,9,10

    thank you

    JM

+ 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. [SOLVED] Sum if with array (sumprod?)
    By Socks Wielder in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-23-2017, 01:32 AM
  2. Sumprod formula to exclude string values
    By gberna2 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-22-2014, 06:01 PM
  3. [SOLVED] sumprod + offset issue
    By jw01 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-19-2013, 09:18 AM
  4. Replies: 4
    Last Post: 03-30-2012, 07:55 AM
  5. sumprod mistery
    By pupcis in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-28-2011, 11:38 AM
  6. SUMPRODUCT formula:pretty simple formulae
    By BUSJEDWA in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2008, 08:59 AM
  7. Excel sumprod formula
    By Engineers08 in forum Excel General
    Replies: 3
    Last Post: 08-10-2007, 09:37 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