Random number based on mean and std dev

excelbetter

Board Regular
Joined
Oct 13, 2010
Messages
190
First off, I'm no statistics expert :)


I am trying to find random numbers based on knowing the mean and std deviation of a dataset.


Years ago, I recall using the formula of "=NormalValue" to do what I want, but I don't see that formula offered in my Excel and therefore don't know what to use now.


Let's assume the following...


Mean = 5.4


Std Dev = 8.3


Therefore, I am looking (I think) to generate random numbers based on the aforementioned. Considering 1 Std Dev is 8.3, I think all of the results should fall between either 5.4+8.3 (ie. 13.7) OR 5.4-8.3 (ie. -2.9)


Do you know what formula to use?

Thank you.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
this will work with 1 decimal places for mean/SD;

mean in B1 and SD in B2

=RANDBETWEEN((B1-B2)*10,(B1+B2)*10)/10
 
Last edited:
Upvote 0
Please be aware that RANDBETWEEN returns a new random number every time the worksheet is calculated/opened.
 
Upvote 0
This will give data between the values given but the resulting data will not be normally distributed which I think is what is required. What you need to do is generate a uniform distribution of random numbers and then transform them to a normal distribution with the required mean and standard deviation. If you generate a column of random numbers using RAND() and then use the function NORM.INV that will do the job. NORM.INV takes 3 parameters, one is the random number generated previously and the other two are the required mean and standard deviation.
 
Upvote 0
=NORMINV(RAND(), M1, S1)

where M1 contains the mean and S1 contains the std dev.
 
Upvote 0

Forum statistics

Threads
1,215,072
Messages
6,122,968
Members
449,095
Latest member
Mr Hughes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top