Thread: UDF for x^1/3
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default UDF for x^1/3

Function cuberoot(a)
cuberoot = a ^ (1 / 3)
End Function

--
Gary''s Student


"Dave F" wrote:

How would I go about creating a UDF, call it cuberoot, which can calculate
the cube root of a number? There doesn't seem to be a built in function for
cube roots, and rather than doing something like =10^1/3, I figured I could
learn a little VBA.

Thanks,

Dave
--
Brevity is the soul of wit.