Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Sponsored Links


How do I set up a random name generator in Micrsoft Excel

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 31-12-2011
Member
 
Join Date: Dec 2011
Posts: 1
How do I set up a random name generator in Micrsoft Excel

Sponsored Links
I am a high school teacher and would like to use a random name generator for calling on students. Any guidance on how to set one up? I read an article in which the author stated a friend wrote an excel formula for doing this - but no further info. Any help would be greatly appreciated.

Reply With Quote
  #2  
Old 31-12-2011
Member
 
Join Date: Jun 2011
Posts: 449
Re: How do I set up a random name generator in Micrsoft Excel

One way is to put the names in column A (say A1:A30) and put =rand() in B1:B30. Then sort those two columns using column B as the primary key. And pick off the top x number of names. If you want, you can resort again to randomize the list.
Reply With Quote
  #3  
Old 31-12-2011
Member
 
Join Date: Jun 2011
Posts: 598
Re: How do I set up a random name generator in Micrsoft Excel

Here's another one. Say you have 20 students. List their names in A1:A20. To randomly pick a single student:
=INDEX(A1:A20,INT(RAND()*20+1))
Repeats are possible. To make another pick just hit function key F9. A new pick will be made every time a calculation takes place.
Reply With Quote
  #4  
Old 31-12-2011
Member
 
Join Date: Jul 2011
Posts: 589
Re: How do I set up a random name generator in Micrsoft Excel

Here is a modification of that approach made by GALIENA. But Rather than sorting, you could put a formula in column C In C1 put: =INDEX($A$1:$A$30,RANK(B1,$B$1:$B$30),1) then drag fill it down to row 30. Now you will have a random list of students. You hit F9 to get a new list. So you could hit F9 each time you want to ask a question and use the top name (hit it again if it duplicates the last value) or hit it once and work your way through that list. Note that if the sheet calculates, the list will be changed, so you might want to Set Calculation to manual (in tools > Options) if you will be working through the list.
Reply With Quote
  #5  
Old 31-12-2011
Member
 
Join Date: Jul 2011
Posts: 584
Re: How do I set up a random name generator in Micrsoft Excel

Let's says you have 30 student names from A1:A30
Code:
B2 =INDEX($A$1:$A$30,RANDBETWEEN(1,30))
Require Analysis ToolPak Add-Ins
Reply With Quote
Reply

  TechArena Community > Software > Windows Software


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How do I set up a random name generator in Micrsoft Excel"
Thread Thread Starter Forum Replies Last Post
How to get a kind of random report generator for Audit purpose via Excel LuniA MS Office Support 2 21-02-2012 12:00 PM
Generate some quality of random number via Random Number Generation function aMADeO! Windows Software 4 13-01-2012 04:07 PM
Random Map Generator for Might & Magic Heroes VI Rumer Video Games 8 07-11-2011 06:47 AM
Generate random data in excel garfield1 Software Development 3 12-08-2009 10:40 AM
Windows 7,unable to install micrsoft office 2007 JAMIN Operating Systems 3 10-03-2009 02:41 PM


All times are GMT +5.5. The time now is 06:50 PM.