This is the old thread, but as I noticed it answering on a new topic (at the bottom of the webpage there is "Similar Threads" section) and the code for random generation of 15 out of 25 grawning can be recycled also here, so I did it.
The new thread is: https://www.excelforum.com/excel-pro...ml#post5747709
And the code is (the recycled part is used as a private sub):
Note that I added one column to your original file - the date of past lottery drawings. (filled this with any dates, you probably have real dates available). This allows to show not only that given generated combination was already (as a whole 15 or 14 numbers out of it) drawn but also show when and if it was dwand more than once list all dates - see row 17 in attached file
Bookmarks