Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
Default Random Names and Command Button

I need to shuffle a list of names between rows 2 and 17. I also need a
command button so that when I click on button names will shuffle through
without duplicating or getting 0s. I tried Index Rand and RandBetween and
not being successful. Can someone please help me. I have seventeen names in
Column A. I want the sames names to be shuffled in column B. Thank you in
advance for any help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Random Names and Command Button

An alternative ..
Assume names in A2:A17
In B2: =RAND()
In C2: =INDEX($A$2:$A$17,RANK(B2,$B$2:$B$17))
Select B2:C2, copy down to C17. Hide away col B.
C2:C17 will return a random shuffle of the names in A2:A17.
Just press F9 key to regenerate. You don't need the command button.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"TotallyConfused" wrote:
I need to shuffle a list of names between rows 2 and 17. I also need a
command button so that when I click on button names will shuffle through
without duplicating or getting 0s. I tried Index Rand and RandBetween and
not being successful. Can someone please help me. I have seventeen names in
Column A. I want the sames names to be shuffled in column B. Thank you in
advance for any help.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
use button to return random numbers jimE Excel Worksheet Functions 1 November 8th 07 11:04 PM
create a random list of names from a list of names in EXCEL Givvie Excel Worksheet Functions 2 October 23rd 06 05:10 AM
How to add a command button Marilyn Excel Discussion (Misc queries) 3 August 3rd 06 01:44 AM
random pick names from the list jinvictor Excel Discussion (Misc queries) 1 June 26th 06 03:00 PM
Random Names DCSwearingen Excel Discussion (Misc queries) 1 June 19th 06 05:21 PM


All times are GMT +1. The time now is 06:54 PM.

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

About Us

"It's about Microsoft Excel"