Hi All,
Can someone help with some code to generate 2,000 unique 8 digit numbers
Thanks
Kevin
Hi All,
Can someone help with some code to generate 2,000 unique 8 digit numbers
Thanks
Kevin
Good morning Excelski
Why code?
Code writing is work intensive for someone to do, but this could be done in one worksheet with a few formulae, to generate the random numbers, and double check they are all unique.
DominicB
Hi DominicB,
Thanks for looking, I had assumed that code was needed for this task, but I am happy with formulas
Kevin
Nonetheless, there are lots of free solutions out there. Here is one: https://www.exceltip.com/tips/random...ut-repeat.html
Adapted workbook from that link attached.
Last edited by AliGW; 07-20-2017 at 06:55 AM.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Hi Excelski
In A1 put this formula and copy down to 2000.
Formula:Please Login or Register to view this content.
In B1 put this formula and copy down.
Formula:Please Login or Register to view this content.
Put this formula in C1.
Formula:Please Login or Register to view this content.
As long as C1 gives the answer 2000, there will be no duplicates. If C1 doesn't equal 2000, then just recalculate.
HTH
DominicB
Thank you both!
Both solutions work great
Kevin
You're welcome!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks