Randomly sort a set group of integers

J

Justin Peckner

Hello,

I would like to randomly sort the numbers 1-35 in my worksheet. Each integer
is in its own seperate cell, which are currently arranged in descending order
in cells A1:A35. I tried selecting A1:A35 and using =UniqRandInt(35) as an
array (from http://www.sulprobil.com/html/uniqrandint.html), but every cell
returned "#NAME?". Any easy-to-follow help would be appreciated- thanks!

-jpeckner
 
M

Mike H

Hi,

In B1 enter the formula

=Rand()

Double click the drag nagdle to fill down to A35
Select A&B columns and sort by column B
To get a different sort hit F9 and sort again.

Mike
 
B

Bernd Plumhoff

Hello,

Did you array-enter this formula (with CTRL + SHIFT + ENTER)?
And did you put the macro into a macro module (press ALT + F11, enter a
module, insert macro text)?

Regards,
Bernd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top