Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hey!
A question about random numbers in excel. I have a huge list of people and I need to assign to each one a random number between 0.0 and 1.25. The problem is I need the following: 70% of the people to be between 1 and 1.2 20% of the people to be above 1.2 10% of people below 1 any way I can do this randomly??? thanks! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
see your other post
-- Mike When competing hypotheses are equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. Occam''s razor (Abbrev) "John Pivot Table" wrote: Hey! A question about random numbers in excel. I have a huge list of people and I need to assign to each one a random number between 0.0 and 1.25. The problem is I need the following: 70% of the people to be between 1 and 1.2 20% of the people to be above 1.2 10% of people below 1 any way I can do this randomly??? thanks! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
John PT,
How about a pseudo-random approach? Let's say that your list of names is in column A, starting in A2, with a header cell in A1. In B2, enter the formula =RANDBETWEEN(1000001,1199999)/1000000 and copy down until you match 70 % of your names. Then use =RANDBETWEEN(1200001,1249999)/1000000 and copy down to match the next 20%, and finish with =RANDBETWEEN(1,999999)/1000000 and copy down to match the last of your list. (OR use, in B2 =IF(ROW(A1)<=ROUND(0.1*(COUNTA(A:A)-1),0),RANDBETWEEN(1,999999)/1000000,IF(ROW(A1)<=ROUND(0.8*(COUNTA(A:A)-1),0),RANDBETWEEN(1000001,1199999)/1000000,RANDBETWEEN(1200001,1249999)/1000000)) and copy down the whole way......) This will create evenly distributed numbers (without duplication) close to the limits that you describe (70% between 1 and 1.2 - how close depends on your population count). Then in C2, enter the formula =RAND() and copy down to match column B. Then select columns B and C, copy and pastespecial values, then sort B and C based on column C, and delete column C. HTH, Bernie MS Excel MVP "John Pivot Table" wrote in message ... Hey! A question about random numbers in excel. I have a huge list of people and I need to assign to each one a random number between 0.0 and 1.25. The problem is I need the following: 70% of the people to be between 1 and 1.2 20% of the people to be above 1.2 10% of people below 1 any way I can do this randomly??? thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
getting numbers divisible by 4 from random numbers in ascending order | Excel Worksheet Functions | |||
I want random numbers generated without repeating numbers | Excel Worksheet Functions | |||
Can Excel pick random numbers from 1-300 and not repeat numbers? | Excel Discussion (Misc queries) | |||
Non-random numbers generated by excel's data analysis random gener | Excel Worksheet Functions | |||
Non-random numbers generated by excel's data analysis random gener | Excel Discussion (Misc queries) |