Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How do I set up a program to randomly select a number from a list between
1-15. On one, I need to pick 1 number everyday for 5 days without picking the same number during those 5 days. On the other I need to pick 2 numbers between 1 and 35 daily for 5 days, again without repeating the same number during the 5 days. Thank you for your help. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
With numbers 1 to 15 in column A, put =RAND() in B1 and copy down to B15.
Sort columns on Column B and select first 5 (one for each day) from A. Do similar exercise for 35 numbers, select top 10, allocating 2 per day. HTH "loida" wrote: How do I set up a program to randomly select a number from a list between 1-15. On one, I need to pick 1 number everyday for 5 days without picking the same number during those 5 days. On the other I need to pick 2 numbers between 1 and 35 daily for 5 days, again without repeating the same number during the 5 days. Thank you for your help. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
loida wrote on Tue, 24 Jul 2007 14:08:08 -0700:
l On the other I need to pick 2 numbers between 1 and 35 daily l for 5 days, again without repeating the same number during l the 5 days. Unless you allow the possibility of a number occuring more than once, your numbers are not truly random (RANDBETWEEN() will work). Two columns, one of numbers and the other of RAND() will do what you want, sorting on the second column. James Silverton Potomac, Maryland E-mail, with obvious alterations: not.jim.silverton.at.verizon.not |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Why not pick those 5 different numbers all at the same time, once a week.
Enter the Rand function in an out-of-the-way location, say Z1: =Rand() And copy down to Z35. Say in A1 to A5, you enter Mon. to Fri. Then in B1, enter: =INDEX(ROW(A$1:A$15),RANK(Z1,Z$1:Z$15)) And copy down to B5. This gives you your random 5 out of 15 without replacement. To get your 2 per day out of 35, enter this formula in say D1: =INDEX(ROW($A$1:$A$35),RANK(INDEX($Z$1:$Z$35,(2*RO WS($1:1))-2+COLUMNS($A:A)),$Z$1:$Z$35)) And copy across to E1, then copy that 2 cell selection down to E5. Youi'll now get your 2 per day random pick without replacement. Each time you hit <F9, you'll get a new set of random numbers. -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "loida" wrote in message ... How do I set up a program to randomly select a number from a list between 1-15. On one, I need to pick 1 number everyday for 5 days without picking the same number during those 5 days. On the other I need to pick 2 numbers between 1 and 35 daily for 5 days, again without repeating the same number during the 5 days. Thank you for your help. |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you, I like this one, it works.
"Ragdyer" wrote: Why not pick those 5 different numbers all at the same time, once a week. Enter the Rand function in an out-of-the-way location, say Z1: =Rand() And copy down to Z35. Say in A1 to A5, you enter Mon. to Fri. Then in B1, enter: =INDEX(ROW(A$1:A$15),RANK(Z1,Z$1:Z$15)) And copy down to B5. This gives you your random 5 out of 15 without replacement. To get your 2 per day out of 35, enter this formula in say D1: =INDEX(ROW($A$1:$A$35),RANK(INDEX($Z$1:$Z$35,(2*RO WS($1:1))-2+COLUMNS($A:A)),$Z$1:$Z$35)) And copy across to E1, then copy that 2 cell selection down to E5. Youi'll now get your 2 per day random pick without replacement. Each time you hit <F9, you'll get a new set of random numbers. -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "loida" wrote in message ... How do I set up a program to randomly select a number from a list between 1-15. On one, I need to pick 1 number everyday for 5 days without picking the same number during those 5 days. On the other I need to pick 2 numbers between 1 and 35 daily for 5 days, again without repeating the same number during the 5 days. Thank you for your help. |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You're welcome, and thanks for the feed-back.
-- Regards, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "loida" wrote in message ... Thank you, I like this one, it works. "Ragdyer" wrote: Why not pick those 5 different numbers all at the same time, once a week. Enter the Rand function in an out-of-the-way location, say Z1: =Rand() And copy down to Z35. Say in A1 to A5, you enter Mon. to Fri. Then in B1, enter: =INDEX(ROW(A$1:A$15),RANK(Z1,Z$1:Z$15)) And copy down to B5. This gives you your random 5 out of 15 without replacement. To get your 2 per day out of 35, enter this formula in say D1: =INDEX(ROW($A$1:$A$35),RANK(INDEX($Z$1:$Z$35,(2*RO WS($1:1))-2+COLUMNS($A:A)) ,$Z$1:$Z$35)) And copy across to E1, then copy that 2 cell selection down to E5. Youi'll now get your 2 per day random pick without replacement. Each time you hit <F9, you'll get a new set of random numbers. -- HTH, RD -------------------------------------------------------------------------- - Please keep all correspondence within the NewsGroup, so all may benefit ! -------------------------------------------------------------------------- - "loida" wrote in message ... How do I set up a program to randomly select a number from a list between 1-15. On one, I need to pick 1 number everyday for 5 days without picking the same number during those 5 days. On the other I need to pick 2 numbers between 1 and 35 daily for 5 days, again without repeating the same number during the 5 days. Thank you for your help. |
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) |