Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Function DisplayFormula(rng As Range) As String
Displayformula = rng.Formula
End Function
=DisplayFormula(A1)
Public Function EvaluateFormula(rng As Range) As Double
EvaluateFormula = Application.Evaluate("=" & rng.FORMULA)
End Function
Public Function EvaluateFormula(rng As Range) As Double
Dim str As String
str = Trim(rng.FORMULA)
If Left(str, 1) <> "=" Then str = "=" & str
If Right(str, 1) = "=" Then str = Left(str, Len(str) - 1)
EvaluateFormula = Application.Evaluate(str)
End Function
'= A1+A2 =