Forum Discussion

Chris144's avatar
Chris144
Copper Contributor
Feb 27, 2022

Excel random sort in one column. only 10 to 50 numbers

Hi there,

Trying randomly sort numbers in a column from 1 to 50 with no duplicates. I've tried RANDOMARRAY but that returns a random number for each cell and there are duplicates.

3 Replies

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    Chris144 As a variant, the following formula will create a randomly sorted list of numbers from 1 to 50 without duplication.

     

    =SORTBY(SEQUENCE(50),RANDARRAY(50))

     

  • Chris144 

    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.

     
     
    • Chris144's avatar
      Chris144
      Copper Contributor
      Thanks so much. I eventually used the RAND function and that sorts it out fine. Took me a while to work out how to use it!!
      Thanks,
      Chris

Resources