Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am working on a simulation project in Excel/VBA and need to generate normal random variables by function Norminv. The compiler doesn't know this function. I guess that I have to select/add a certain Add-In to activate this function. Does anyone know which Add-In or how to use this function in VBA? Thanks Ming |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
you have to add a reference to the Analysis Toolpak add-in for this -- Regards Frank Kabel Frankfurt, Germany "miong" schrieb im Newsbeitrag ... Hi, I am working on a simulation project in Excel/VBA and need to generate normal random variables by function Norminv. The compiler doesn't know this function. I guess that I have to select/add a certain Add-In to activate this function. Does anyone know which Add-In or how to use this function in VBA? Thanks Ming |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ming -
I am working on a simulation project in Excel/VBA and need to generate normal random variables by function Norminv. The compiler doesn't know this function. I guess that I have to select/add a certain Add-In to activate this function. Does anyone know which Add-In or how to use this function in VBA? < Use the same approach you would use with any worksheet function in VBA: Result = Application.WorksheetFunction.Norminv(prob,mean,st dev) Be aware of numerical inaccuracies of Norminv in pre-2002 versions of Excel. - Mike Middleton, www.usfca.edu/~middleton |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Michael R Middleton wrote:
Ming - I am working on a simulation project in Excel/VBA and need to generate normal random variables by function Norminv. The compiler doesn't know this function. I guess that I have to select/add a certain Add-In to activate this function. Does anyone know which Add-In or how to use this function in VBA? < Use the same approach you would use with any worksheet function in VBA: Result = Application.WorksheetFunction.Norminv(prob,mean,st dev) Be aware of numerical inaccuracies of Norminv in pre-2002 versions of Excel. Actually you need 2003 for this to be a reasonable RNG method. 2002 has a better inverse of NormSDist than previous versions, but NormSDist is still lousy in the tails till 2003. Jerry |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Random Generator | Excel Discussion (Misc queries) | |||
Random number generator | Excel Worksheet Functions | |||
Random Name Generator | Excel Worksheet Functions | |||
Random # Generator | Excel Worksheet Functions | |||
Normal Random Variable Generator | Excel Programming |