A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Randomizing



 
 
Thread Tools Display Modes
  #1  
Old March 20th, 2010, 02:32 PM posted to microsoft.public.excel.misc
James Silverton[_4_]
external usenet poster
 
Posts: 162
Default Randomizing

Hello All!

I have been using a sort on a helper column of random numbers [generated
by RAND() ] to randomize a data set but I notice that the column of
random numbers changes when I do the sort. Can any expert tell me if the
sort or the recalculation occurs first?

--


James Silverton
Potomac, Maryland

Email, with obvious alterations:
not.jim.silverton.at.verizon.not

  #2  
Old March 20th, 2010, 03:14 PM posted to microsoft.public.excel.misc
Chip Pearson
external usenet poster
 
Posts: 1,343
Default Randomizing

The sort comes first. You can see this by using a small list of data.
For example, in A1:A4 enter 1, 2, 3, and 4, and in B1:B4 enter
=RAND(). Next, copy the values in B1:B4 to D14. Copy/paste as
values only, not formulas. Now sort A14 by column B. You'll see that
the order of the elements in D are sorted, and then new values are
calculated in B. The new values in B are not (necessarily) in sorted
order, but values in D are.



Cordially,
Chip Pearson
Microsoft Most Valuable Professional,
Excel, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com



On Sat, 20 Mar 2010 10:32:40 -0400, "James Silverton"
wrote:

Hello All!

I have been using a sort on a helper column of random numbers [generated
by RAND() ] to randomize a data set but I notice that the column of
random numbers changes when I do the sort. Can any expert tell me if the
sort or the recalculation occurs first?

  #3  
Old March 20th, 2010, 03:26 PM posted to microsoft.public.excel.misc
James Silverton[_4_]
external usenet poster
 
Posts: 162
Default Randomizing

Chip wrote on Sat, 20 Mar 2010 10:14:11 -0500:

Cordially,
Chip Pearson
Microsoft Most Valuable Professional,
Excel, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com


On Sat, 20 Mar 2010 10:32:40 -0400, "James Silverton"
wrote:


Hello All!

I have been using a sort on a helper column of random numbers
[generated by RAND() ] to randomize a data set but I notice
that the column of random numbers changes when I do the sort.
Can any expert tell me if the sort or the recalculation
occurs first?



The sort comes first. You can see this by using a small list of
data.......


Thanks, that's interesting.

--

James Silverton
Potomac, Maryland

Email, with obvious alterations: not.jim.silverton.at.verizon.not

  #4  
Old March 20th, 2010, 03:32 PM posted to microsoft.public.excel.misc
Mike H
external usenet poster
 
Posts: 8,419
Default Randomizing

Hi,

The sort causes a recalculation so it comes after the sort takes place so
data will sort on the values you see in the helper column prior to the sort
taking place.

This can be verified by looking at the random numbers after the sort which
aren't in sorted order because they have changed.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"James Silverton" wrote:

Hello All!

I have been using a sort on a helper column of random numbers [generated
by RAND() ] to randomize a data set but I notice that the column of
random numbers changes when I do the sort. Can any expert tell me if the
sort or the recalculation occurs first?

--


James Silverton
Potomac, Maryland

Email, with obvious alterations:
not.jim.silverton.at.verizon.not

.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.