Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Create a Random Variable

I am trying to model the success of sales reps and would like to create a
cell that has 3 options Fail, Average, and Superstar. I would aslo like to
assign ratios to 2 of the groups (so a user can play with the ratios) with
the third being default. So a simple example:

2 out of 3 Fail
1 out of 6 Average

Rep Number Expected Result
Rep 1 Fail
Rep 2 Fail
Rep 3 Average
Rep 4 Fail
Rep 5 Fail
Rep 6 Superstar
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Create a Random Variable

One venture ..

Assuming your "Rep number - Expected result" table is in A1:B7, where the
"Expected results" are to be randomly generated

In B2:
=INDEX({"Fail";"Fail";"Fail";"Fail";"Average";"Sup erstar"},RANK(C2,$C$2:$C$7))

In C2: =RAND()
Copy B2:C2 down to C7. Hide away col C. B2:B7 will return the desired random
scramble of the possible outcomes (Fail, Average, Superstar) in the specified
ratios. Press F9 to regenerate.

success? hit YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
" wrote:
I am trying to model the success of sales reps and would like to create a
cell that has 3 options Fail, Average, and Superstar. I would aslo like to
assign ratios to 2 of the groups (so a user can play with the ratios) with
the third being default. So a simple example:

2 out of 3 Fail
1 out of 6 Average

Rep Number Expected Result
Rep 1 Fail
Rep 2 Fail
Rep 3 Average
Rep 4 Fail
Rep 5 Fail
Rep 6 Superstar

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Create a Random Variable

I was hoping not to use the rand() function because then I can not replicate
my results. I was hoping I could use a formula that would be able make the
pattern of ratio's work so I would have consistent results.

Thanks,
Dan

"Max" wrote:

One venture ..

Assuming your "Rep number - Expected result" table is in A1:B7, where the
"Expected results" are to be randomly generated

In B2:
=INDEX({"Fail";"Fail";"Fail";"Fail";"Average";"Sup erstar"},RANK(C2,$C$2:$C$7))

In C2: =RAND()
Copy B2:C2 down to C7. Hide away col C. B2:B7 will return the desired random
scramble of the possible outcomes (Fail, Average, Superstar) in the specified
ratios. Press F9 to regenerate.

success? hit YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
" wrote:
I am trying to model the success of sales reps and would like to create a
cell that has 3 options Fail, Average, and Superstar. I would aslo like to
assign ratios to 2 of the groups (so a user can play with the ratios) with
the third being default. So a simple example:

2 out of 3 Fail
1 out of 6 Average

Rep Number Expected Result
Rep 1 Fail
Rep 2 Fail
Rep 3 Average
Rep 4 Fail
Rep 5 Fail
Rep 6 Superstar

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default Create a Random Variable

Hello,

If you like to achieve a certain distribution "on average" then have a
look at my UDF redw or at the other ones shown under
http://sulprobil.com/html/distributions.html

If you need EXACTLY a specified count of your given results you can
use my UDF UniqRandInt:
http://sulprobil.com/html/uniqrandint.html

Regards,
Bernd
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
How can I create a list of random numbers with no duplicates? Kwasniewski Excel Discussion (Misc queries) 2 May 15th 06 02:44 AM
How do I create a random sample from a list? swrath Excel Worksheet Functions 1 December 23rd 05 03:32 PM
Can excel be used to create a random number generator? comotoman Excel Discussion (Misc queries) 2 September 16th 05 09:55 PM
create random NON-REPEATING numbers (e.g., 20 #'s between 1-100) Leon Excel Discussion (Misc queries) 1 June 3rd 05 12:20 AM
How do you create a random number generator in Excel? gmrobillard Excel Worksheet Functions 5 March 23rd 05 09:10 AM


All times are GMT +1. The time now is 03:41 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"