Thread: VBA and norminv
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ksnapp[_2_] ksnapp[_2_] is offline
external usenet poster
 
Posts: 1
Default VBA and norminv

hi

can anybody tell why this doesn't work, or better yet show me how t
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