Compatible Support Forums: Need Help With Excel Homework..

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Need Help With Excel Homework..

#1 User is offline   B_2 

  • newbie
  • Group: Members
  • Posts: 26
  • Joined: 01-April 01

Posted 17 May 2001 - 01:46 AM

Any experts out there ?
0

#2 User is offline   JMD 

  • enthusiast
  • Group: Members
  • Posts: 202
  • Joined: 18-May 00

Posted 17 May 2001 - 03:01 AM

What kind of help do you need. LOL I'M not a pro but I know a thing or too.


Cheers smile
0

#3 User is offline   B_2 

  • newbie
  • Group: Members
  • Posts: 26
  • Joined: 01-April 01

Posted 17 May 2001 - 06:43 PM

How would you go about randomly sampling 5 names from a list of 8?
0

#4 User is offline   CUViper 

  • old hand
  • Group: Members
  • Posts: 1120
  • Joined: 23-January 00

Posted 17 May 2001 - 08:22 PM

do they have to be unique? ie. can the same name be picked more than once?
0

#5 User is offline   B_2 

  • newbie
  • Group: Members
  • Posts: 26
  • Joined: 01-April 01

Posted 17 May 2001 - 08:53 PM

nope they dont have to be unique...
0

#6 User is offline   CUViper 

  • old hand
  • Group: Members
  • Posts: 1120
  • Joined: 23-January 00

Posted 17 May 2001 - 09:45 PM

This should work for you - this of course assumes that your names are in A1:A8, but you can change that to suit your needs.

=INDEX(A1:A8,CEILING(RAND()*8,1),1)

Be careful when copying this formula around that it doesn't try to 'update' the array location. If you want, you can lock it down with dollar signs - ie. $A$1:$A$8. Also, the INDEX works in (row,column) coordinates. I assumed here that the data is vertical, so the row is random and the column is always 1, the first (and only) column of the array. If your data is horizontal, then make the row 1 and the column random.
0

#7 User is offline   B_2 

  • newbie
  • Group: Members
  • Posts: 26
  • Joined: 01-April 01

Posted 17 May 2001 - 10:05 PM

....Live The Dream....
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users