如何将字符串公式变成“真实的"公式?
问题描述:
我在一个单元格中有 0,4*A1
(作为一个字符串).如何将这个字符串公式"转换为真正的公式并在另一个单元格中计算其值?
I have 0,4*A1
in a cell (as a string). How can convert this "string formula" into a real formula and calculate its value, in another cell?
答
Evaluate
可能适合:
http://www.mrexcel.com/forum/showthread.php?t=62067
Function Eval(Ref As String)
Application.Volatile
Eval = Evaluate(Ref)
End Function