Thread: UDF for x^1/3
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave F Dave F is offline
external usenet poster
 
Posts: 2,574
Default UDF for x^1/3

OK, that was easy.

Thanks.
--
Brevity is the soul of wit.


"Gary''s Student" wrote:

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.