Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm not a stats person, but would taking the StDev of the population
(StDevP) work? I am not sure what you mean by "doesn't work." Function Dandy(P As Double, rng As Range) Dim M As Double Dim S As Double With WorksheetFunction M = .Average(rng) S = .StDevP(rng) Dandy = .NormInv(P, M, S) End With End Function -- Dana DeLouis Using Windows XP & Office XP = = = = = = = = = = = = = = = = = "ksnapp " wrote in message ... hi can anybody tell why this doesn't work, or better yet show me how to make it work Function Dandy(P As Double, rng) Dim M As Double M = Application.Average(rng) Dim S As Double S = Application.StDev(rng) Dandy = Application.Norminv(P, M, S) End Function What im tryin to do is write a UDF tha replaces this =Norminv(P, average(range), Stdev(range)) --- Message posted from http://www.ExcelForum.com/ |