I want to have excel create a random variable, where it equals 1 x% of the time, and 0 (1-X)% of the time. Is there a simple way to do this?
Thanks again in advance.
I want to have excel create a random variable, where it equals 1 x% of the time, and 0 (1-X)% of the time. Is there a simple way to do this?
Thanks again in advance.
This should give you a 60/40 split. Adjust to suit
=IF(RAND()>0.6,1,0)
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
Thanks a ton man!