Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How can I set up one formula to randomly give me a number from multiple
ranges? For example, I have 2 ranges. One is 105 though 128 and the other is 244 through 286. I need to randomly select one number from either range. I have tried the =RANDBETWEEN function, but I can't get it to work for multiple ranges. Please help! Thank You Chris |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You could set up multiple randbetween statements with an IF statement.
If each range is weighted equally: =IF(RANDBETWEEN(1,2)=1,RANDBETWEEN(105,128),RANDBE TWEEN(244,286)) If each possibility in each range is weighted equally: =IF(RANDBETWEEN(1,67)<25,RANDBETWEEN(105,128),RAND BETWEEN(244,286)) -- John C "ChrisSafety" wrote: How can I set up one formula to randomly give me a number from multiple ranges? For example, I have 2 ranges. One is 105 though 128 and the other is 244 through 286. I need to randomly select one number from either range. I have tried the =RANDBETWEEN function, but I can't get it to work for multiple ranges. Please help! Thank You Chris |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you so much! It worked perfectly!
"John C" wrote: You could set up multiple randbetween statements with an IF statement. If each range is weighted equally: =IF(RANDBETWEEN(1,2)=1,RANDBETWEEN(105,128),RANDBE TWEEN(244,286)) If each possibility in each range is weighted equally: =IF(RANDBETWEEN(1,67)<25,RANDBETWEEN(105,128),RAND BETWEEN(244,286)) -- John C "ChrisSafety" wrote: How can I set up one formula to randomly give me a number from multiple ranges? For example, I have 2 ranges. One is 105 though 128 and the other is 244 through 286. I need to randomly select one number from either range. I have tried the =RANDBETWEEN function, but I can't get it to work for multiple ranges. Please help! Thank You Chris |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
1. have you tried to use named ranges?
in Excel 2003 Insert-Name-Define 2. another option might be: http://www.tushar-mehta.com/excel/ti..._argument.html |
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) |