You will need to use VBA in order to do this.
<alt-F11> opens the VB Editor.
Ensure your project is highlighted in the project explorer window, then select
Insert/Module from the top menu and enter the code below into the window that
opens.
Then, in C2, enter the formula: =Eval(C1)
=====================
Function Eval(rg As Range)
Application.Volatile
Eval = Evaluate(rg.Text)
End Function
======================
--ron
you might want to use the VBA function EVAL() shown at
http://www.decisionmodels.com/calcsecretsh.htm
Another approach is shown at
http://www.sulprobil.com/html/it_quality.html
HTH,
Bernd
"You will need to use VBA in order to do this.
<alt-F11> opens the VB Editor.
Ensure your project is highlighted in the project explorer window, then
select
Insert/Module from the top menu and enter the code below into the window
that
opens."
--
Regards,
Peo Sjoblom
Northwest Excel Solutions
(remove ^^ from email address)
Portland, Oregon
<zhaoni...@gmail.com> wrote in message
news:1142825020....@t31g2000cwb.googlegroups.com...
Post back, by copying exactly (Edit/Copy) exactly what you entered into the VB
Editor and exactly what you entered as a formula.
--ron
In the worksheet, cell C1, I wrote:
(A1+A2)/2
In cell C2, I wrote:
=eval(C1)
And I am sure that the VBA module is under the same project with the
workbook.
Regards.
I see ; J-Walk is not his real name previously. But nowadays, he is
running a blog by that name. That shows that he likes the name.
Please visit the following link (to start with, and then, one may wish
to proceed further) :-
http://j-walk.com/ss/books/index.htm
Please do so today and thereafter, everyday ; any time of the day,
well, almost. That's a pilgimage to the Mecca of Excel (You won't mind,
Mr. Walker ?).
Regards.