Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
There was an error - the formula must be =OFFSET($A$1,RANDBETWEEN(0,69),0) Otherwise the value in A1 is never selected, and sometimes 0 is selected (when in A71 is nothing). Arvi Laanemets "Arvi Laanemets" wrote in message ... Hi "merjet" wrote in message news:Zjdhb.527730$Oz4.399041@rwcrnsc54... I would like to generate some random numbers - 10 at a time - from a list in range a1:a70 Is there an Excel or VBA Ssolution please Put random numbers using the RAND function in B1:B70. Then sort A and B together based only on B. Take the 1st 10 from A. Sort again for another 10. Note: Col B won't look like it's sorted because of recalculation, but it's clear that A is being shuffled. Too sophisticated. The formula below will do the same. =OFFSET($A$1;RANDBETWEEN(1;70);0) And the weak point is also same - when you put 10 such formulas into some range, then how to avoid the that some value is selected twice or trice? When this doesn't matter, the there you go! Arvi Laanemets |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Random Numbers excluding Previous Numbers | Excel Worksheet Functions | |||
getting numbers divisible by 4 from random numbers in ascending order | 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) |