Serving the Quantitative Finance Community

 
User avatar
Anthony
Topic Author
Posts: 3
Joined: September 7th, 2001, 12:04 pm

Excel Formula Charting

May 30th, 2002, 7:53 am

Came across this method recently for graphing a formula, saves space and very efficient.
 
User avatar
Anthony
Topic Author
Posts: 3
Joined: September 7th, 2001, 12:04 pm

Excel Formula Charting

May 30th, 2002, 10:11 am

It uses the undocumented Evaluate() function.
 
User avatar
osvaldo
Posts: 0
Joined: July 14th, 2002, 3:00 am

Excel Formula Charting

July 24th, 2002, 7:11 pm

Anthony, can you please explain more.I cant find the evaluate function.I am very interested in this method.Thanks
Last edited by osvaldo on July 23rd, 2002, 10:00 pm, edited 1 time in total.
 
User avatar
Anthony
Topic Author
Posts: 3
Joined: September 7th, 2001, 12:04 pm

Excel Formula Charting

July 24th, 2002, 8:14 pm

Apologies, this thread was supposed to have an xls attached to it, i think it must have got deleted at some stage.I've attached a simple xls that was used in the thread ' Mirror a Graph'. Take a look in the menu command Insert - Name - Define. There you will see how the named range Y is setup using the evaluate() function which relies upon the formula entered in cell c3, note that most Excel functions will work in the formula but user defined ones wont, which is a shame. Also take a look at how the chart is calculated, i.e. it is based upon the named ranges x and y which are arrays. There are also more sophisticated things you can do to replace x in this example by using the offset() function to produce an array of numbers within given bounds, that way you dont use any worksheet space. Note that the evaluate() function is not documented, I'm hazarding a guess that it is used internally for the regression functions.hope this helps.
Attachments
excelexample.zip
(2.26 KiB) Downloaded 111 times
 
User avatar
osvaldo
Posts: 0
Joined: July 14th, 2002, 3:00 am

Excel Formula Charting

July 25th, 2002, 7:36 pm

Thanks AnthonyIt is really good.I am not sure I understand the second curve on the graph.One of the curves is the resulte of the evaluation of the function defined but dont know what the other curve is.
 
User avatar
Anthony
Topic Author
Posts: 3
Joined: September 7th, 2001, 12:04 pm

Excel Formula Charting

July 26th, 2002, 5:51 am

There are 2 series X and Z. The X series is the one on the worksheet and the Z series is generated as its inverse using the evaluate() function and the formula in cell c3.
Last edited by Anthony on July 25th, 2002, 10:00 pm, edited 1 time in total.