Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Normal Random Generator

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Normal Random Generator

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Normal Random Generator

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 837
Default Normal Random Generator

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Random Generator Richard Champlin Excel Discussion (Misc queries) 15 October 26th 07 09:32 PM
Random number generator deelee Excel Worksheet Functions 3 October 12th 06 07:46 PM
Random Name Generator Smeeg Excel Worksheet Functions 5 March 3rd 06 03:25 PM
Random # Generator vamosj Excel Worksheet Functions 0 November 8th 04 07:14 PM
Normal Random Variable Generator Ming Shao[_2_] Excel Programming 3 May 22nd 04 05:28 PM


All times are GMT +1. The time now is 03:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"