How to turn a string formula into a “real” formula

前端 未结 8 813
情深已故
情深已故 2020-11-22 12:15

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?

相关标签:
8条回答
  • 2020-11-22 12:55

    In my opinion the best solutions is in this link: http://www.myonlinetraininghub.com/excel-factor-12-secret-evaluate-function

    Here is a summary: 1) In cell A1 enter 1, 2) In cell A2 enter 2, 3) In cell A3 enter +, 4) Create a named range, with "=Evaluate(A1 & A3 & A2)" in the refers to field while creating the named range. Lets call this named range "testEval", 5) In cell A4 enter =testEval,

    Cell A4 should have the value 3 in it.

    Notes: a) Requires no programming/vba. b) I did this in Excel 2013 and it works.

    0 讨论(0)
  • 2020-11-22 13:01

    Evaluate might suit:

    http://www.mrexcel.com/forum/showthread.php?t=62067

    Function Eval(Ref As String)
        Application.Volatile
        Eval = Evaluate(Ref)
    End Function
    
    0 讨论(0)
提交回复
热议问题