Serving the Quantitative Finance Community

 
User avatar
doublebarrier2000
Topic Author
Posts: 15
Joined: July 14th, 2002, 3:00 am

need excel formula that pulls out a formula

November 10th, 2003, 8:26 pm

HiDoes anybody know of or have an excel function (probably had to be written in VBA) that returns the text of the actual function in the cell it points to ie if cell A1 has the function "=RAND()" and its value is say 0.5, I need a function that i could type into say B2 "=afunction(A1)" that will return =RAND().thanks
 
User avatar
luizvs
Posts: 0
Joined: May 23rd, 2003, 6:13 pm

need excel formula that pulls out a formula

November 10th, 2003, 9:01 pm

Try this:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Public Function ret_func(target As Range) As String ret_func = target.FormulaEnd Function~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
User avatar
doublebarrier2000
Topic Author
Posts: 15
Joined: July 14th, 2002, 3:00 am

need excel formula that pulls out a formula

November 10th, 2003, 9:37 pm

dear luizvsthankyou very muchi wish you good health and prosperitrydb