ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I get excel to generate Random nos for my data? (https://www.excelbanter.com/excel-worksheet-functions/91692-how-do-i-get-excel-generate-random-nos-my-data.html)

GC

How do I get excel to generate Random nos for my data?
 
I want to randomize my study population. I have a data set from which I want
to select my sample randomly.

Marcelo

How do I get excel to generate Random nos for my data?
 
maybe the fuction RANDBETWEEN could help you it will randomize numbers in an
interval eg.:

randbetween(1,100)

if your data is sequencial it will run.

hope it helps
regard from Brazil
Marcelo

"GC" escreveu:

I want to randomize my study population. I have a data set from which I want
to select my sample randomly.


[email protected]

How do I get excel to generate Random nos for my data?
 
Hello,

Give your data area the name "study_population".

Then select the number of cells which you want to fill with a random
sample and enter
=INDEX(study_population,uniqrandint(COUNTA(study_p opulation)))
as array formula (with CTRL + SHIFT + ENTER).

My UDF UniqRandInt you get he
http://sulprobil.com/html/uniqrandint.html

HTH,
Bernd



All times are GMT +1. The time now is 01:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com