Forum Discussion
momo93
Feb 15, 2019Copper Contributor
Excel Evaluate formula
Hi everyone! I've a problem. I installed the newest excel version on my Mac, but I can't find the Evaluate Formula Command. Someone can help me? thank you
HansVogelaar
Jun 26, 2022MVP
How about
With ws.Range("M2")
.NumberFormat = "#,##0.00"
.Formula = "=SUMIFS($I:$I,$F:$F,"">60"",$G:$G, ""USD"")"
.Value = .Value
End With
or
With ws.Range("M2")
.NumberFormat = "#,##0.00"
.Value = Evaluate("=SUMIFS($I:$I,$F:$F,"">60"",$G:$G, ""USD"")")
End With
or
With ws.Range("M2")
.NumberFormat = "#,##0.00"
.Value = Application.SumIfs(Range("I:I"), Range("F:F"), ">60", Range("G:G"), "USD")
End With
hrh_dash
Jun 26, 2022Iron Contributor
thanks for the help! code is working perfectly and it is also working perfectly for another line of code. Appreciate the help!