#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tom tom is offline
external usenet poster
 
Posts: 570
Default Randbetween help

am using Excel 2003 and I have a formula to randomly select employees for a
mandatory drug screen. I have 15 employees and I use the formula
=randbetween(1,15)"Mary","Bill")
etc. having to type in all 15 names. Is there a way to use a named range
with randbetween that refers to text names. I tried naming the range
employees and using =randbetween(1,15) employees . and it didn't work and
then I tried =randbetween("employees" and that didn't work. I even tried
=randbetween(b7:b22) and that failed also
any suggestions? I appreciate the help

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Randbetween help

Drug tests are a waste of money!

List the employee names in a range of cells, say A1:A15.

Then:

=INDEX(A1:A15,RANDBETWEEN(1,15))

--
Biff
Microsoft Excel MVP


"Tom" wrote in message
...
am using Excel 2003 and I have a formula to randomly select employees for
a
mandatory drug screen. I have 15 employees and I use the formula
=randbetween(1,15)"Mary","Bill")
etc. having to type in all 15 names. Is there a way to use a named range
with randbetween that refers to text names. I tried naming the range
employees and using =randbetween(1,15) employees . and it didn't work and
then I tried =randbetween("employees" and that didn't work. I even tried
=randbetween(b7:b22) and that failed also
any suggestions? I appreciate the help



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default Randbetween help

Try

=INDEX(employees,RANDBETWEEN(1,15))

Hope this helps,

Hutch

"Tom" wrote:

am using Excel 2003 and I have a formula to randomly select employees for a
mandatory drug screen. I have 15 employees and I use the formula
=randbetween(1,15)"Mary","Bill")
etc. having to type in all 15 names. Is there a way to use a named range
with randbetween that refers to text names. I tried naming the range
employees and using =randbetween(1,15) employees . and it didn't work and
then I tried =randbetween("employees" and that didn't work. I even tried
=randbetween(b7:b22) and that failed also
any suggestions? I appreciate the 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
randbetween kjetil syvertsen Excel Worksheet Functions 3 October 19th 08 06:04 PM
randbetween(1.1,1.25) Deniz Excel Worksheet Functions 3 July 10th 07 04:40 PM
RANDBETWEEN pkeegs Excel Worksheet Functions 6 April 27th 07 01:12 AM
RANDBETWEEN Michel AUDIFFREN Excel Discussion (Misc queries) 0 February 26th 06 11:02 PM
randbetween [email protected] Excel Discussion (Misc queries) 1 November 21st 05 01:25 PM


All times are GMT +1. The time now is 09:54 AM.

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"