+ Reply to Thread
Results 1 to 4 of 4

Trouble Sorting Averages of Randomly Generated Numbers

  1. #1
    Registered User
    Join Date
    09-04-2005
    Posts
    3

    Trouble Sorting Averages of Randomly Generated Numbers

    Hello:

    Please excuse me if I am missing something obvious, but I am stumped.

    I have created a worksheet that contains two columns of 200 randomly generated whole numbers from 0 to 5 each using the formula =ROUND(5*RAND(),0). (These are meant to be grades in a hypothetical class of students.) I have a third column containing the weighted averages of the two grades.

    When I try to sort the student records according to the averages in descending order using Data:Sort, Excel fails to do a proper sort. Instead, I get what seems to be a bunch of randomly arranged records. I even tried adding a fourth column using the VALUE function thinking that the formulas were somehow throwing off the sort, but that didn't work either.

    Can anybody point me in the right direction?

    This isn't even supposed to be the hard stuff. I still need to work with this data in a Pivot Table!

    Thanks,

    George

  2. #2
    NlCO
    Guest
    Every time Excel makes a calculation it will refresh the Rand formula, try pressing Delete and you will se what I'm talking about. No changes but the numbers changed.
    What you'll have to do is paste the values to average the results.

    Saludos

    NlCO

  3. #3
    Valued Forum Contributor
    Join Date
    06-30-2005
    Location
    Verwood, Dorset, England
    MS-Off Ver
    Excel 2000
    Posts
    479
    Quote Originally Posted by GStrawley
    Hello:

    Please excuse me if I am missing something obvious, but I am stumped.

    I have created a worksheet that contains two columns of 200 randomly generated whole numbers from 0 to 5 each using the formula =ROUND(5*RAND(),0). (These are meant to be grades in a hypothetical class of students.) I have a third column containing the weighted averages of the two grades.

    When I try to sort the student records according to the averages in descending order using Data:Sort, Excel fails to do a proper sort. Instead, I get what seems to be a bunch of randomly arranged records. I even tried adding a fourth column using the VALUE function thinking that the formulas were somehow throwing off the sort, but that didn't work either.

    Can anybody point me in the right direction?

    This isn't even supposed to be the hard stuff. I still need to work with this data in a Pivot Table!

    Thanks,

    George
    Hi George

    Try copying the column of randomly generated numbers you want to sort on and paste special values over the top, then sort,
    Paul

  4. #4
    Registered User
    Join Date
    09-04-2005
    Posts
    3

    Thanks

    Thanks for the help. Using the special paste command did the job.

    -- George

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1