Forum Discussion
SpartanBoy02
Feb 06, 2022Copper Contributor
=RANDBETWEEN NO DUPLICATES BETWEEN 1-52
Hi, I have been struggling with this for some time, I have office 2019, and I want to use that formula as stated in Subject to get a row of random numbers everytime, but the number may have no du...
- Feb 06, 2022
In the attached file in cell A1 you can enter the number of random numbers which will be displayed in range A3:A54. Click the button in cell D2 to start the macro. Maybe this is what you want to do.
HansVogelaar
Feb 06, 2022MVP
How many random numbers do you want?
SpartanBoy02
Feb 06, 2022Copper Contributor
1-52
- HansVogelaarFeb 06, 2022MVP
A low-tech approach that works in all versions of Excel:
Enter the numbers 1 and 2 in A1 and A2.
Select A1:A2, then fill down to A52.
In B1, enter the formula =RAND()
Fill down to B52.
Click in B1, then sort ascending.
The numbers in A1:A52 are now in random order.
- SpartanBoy02Feb 07, 2022Copper ContributorThank you for your reply, If i use RAND then i get values of 0.1555 or 0.8555, I can use =INT to round it to closest number, But this way I will still sit with duplicates, everytime i click on anything it must still recalculate and give me random number, no 0.1888 numbers and then also no duplicates.
I used this one now, it stil give me duplicates though.
=INT(RAND()*52) - Donald_Genes_Feb 06, 2022Brass ContributorYou're right! i was thinking he is using office 365,
By the way, i also like your method! absolutely i love your own method
I learnt something new today courtesy of you