Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2008

Tip: Looking for answers? Try searching our database.

Mix-up numbers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff - 24 Jan 2008 11:34 GMT
I have a list of numbers on a spread sheet. 1-100. I would like to randomly
mix them up. Is there a function to do this?
1
2
3
4
.
.
.
100

Like
33
91
4
16
.
.
.
1
Thanks! Jeff
Stan Brown - 24 Jan 2008 12:19 GMT
Thu, 24 Jan 2008 03:34:01 -0800 from Jeff
<Jeff@discussions.microsoft.com>:
> I have a list of numbers on a spread sheet. 1-100. I would like to randomly
> mix them up. Is there a function to do this?

I don't believe there's a one-step way, but here's what I would do. I
assume your numbers are in A1:A100; make appropriate adjustments for
their actual location.

1. In C1, type  =RAND()
2. Click and drag C1:C100 to fill the cells with the formulas.
3. Highlight C1:C100, Edit | Copy.
4. Highlight B1:B100, Edit | Paste Special and select Values.
(This ensures that the random numbers won't change during the sort.
It might be an unnecessary precaution, but does no harm.)
5. Highlight A1:B100, Data | Sort, sort Ascending on Column B. Make
sure "No header row" is selected.
6. Delete columns B and C.

If you just wanted 100 random integers, that's easy enough with
    =1+int(100*rand())
But it looks like you want to ensure all 100 integers are in the
list, with no duplicates. That's what makes the extra work.

Signature

Stan Brown, Oak Road Systems, Tompkins County, New York, USA
                                 http://OakRoadSystems.com/
"If there's one thing I know, it's men. I ought to: it's
been my life work."  -- Marie Dressler, in /Dinner at Eight/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.