+ Reply to Thread
Results 1 to 7 of 7

Lotto triplets,quads and more

  1. #1
    Registered User
    Join Date
    03-13-2014
    Location
    bratislava
    MS-Off Ver
    Excel 2013
    Posts
    6

    Lotto triplets,quads and more

    hello pls vba code for this file example extract triples: 1,4,6 OR 2,9,48

    and i must 4-6digitcode to extract examle 1,4,6,12 1,4,6,12,15 1,4,6,12,15,18 PLS

    https://www.dropbox.com/s/0ksum9oewkxuw7o/200test.xlsx

    this macro is for triples

    Please Login or Register  to view this content.
    Last edited by dragon66; 03-14-2014 at 07:15 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Lotto triplets,quads and more

    Hi dragon66,

    Invest ;-) some time to read http://www.excelforum.com/forum-rule...rum-rules.html

    During reading focus on code tags and on attachments. Also do not SHOUT http://netiquette.wikia.com/wiki/Rul...t_use_all_caps

    So please, edit your post. I insist.

    As for the macro - not tested and edited it only - try this:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    03-13-2014
    Location
    bratislava
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Lotto triplets,quads and more

    hi kaper and 5,6 digit combination single script? pls this sub blah4 script is perfectly nice

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by dragon66; 03-14-2014 at 07:18 AM.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Lotto triplets,quads and more

    Follow the rules: http://www.excelforum.com/forum-rule...rum-rules.html

    Edit your post. Now 2 posts.

    I nic więcej nie napiszę, dopóki nie poprawisz!

  5. #5
    Registered User
    Join Date
    03-13-2014
    Location
    bratislava
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Lotto triplets,quads and more

    kaper pls

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Lotto triplets,quads and more

    for 5s:
    as I already wrote, just add i loop and again use median:
    Please Login or Register  to view this content.
    For 6 - note that you don't have to use loops at all - you are just checking if all are repeated. and moreover - they are already sorted so code is shorter again.
    Please note how indenting improves readability of the code

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-13-2014
    Location
    bratislava
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Lotto triplets,quads and more

    and sub7 for this file? https://www.dropbox.com/s/idepug3hfwzgg37/7new.xlsx This is really the last:p perfect!!! thx you very much
    Last edited by dragon66; 03-14-2014 at 08:51 AM.

+ 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] Mark up pairs, triplets, quads, and quints+ of repeating cells and give each a designator
    By woodrrow in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-27-2013, 01:06 PM
  2. Repeating quads,triples etc
    By JonathanLucky in forum Excel General
    Replies: 5
    Last Post: 10-11-2012, 02:53 PM
  3. [SOLVED] Coordinate triplets with point number
    By gith in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-12-2012, 10:12 AM
  4. Graph template with quads and band
    By mtwelsh72 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-07-2006, 03:25 PM
  5. Pairs, Triplets, Quads...
    By Mike NG in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-05-2005, 09:40 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