VBA has an Evaluate function that returns the numerical value of any text string representing a mathematical formula, but this is not directly available from the spreadsheet. Today’s download is a User Defined Function (UDF) to provide this functionality, together with examples of its application.
The original function was described in Evaluate Function and Evaluate Function – update, together with an example using the function to perform numerical integration.
Download file: http://www.interactiveds.com.au/software/Eval.zip
A later version was published in More on the Excel Evaluate function, together with details of how to use the built-in Evaluate function with named ranges, without using VBA. See below for the download files.
Finally this year the function was modified to deal with values using a comma as a decimal separator in Return of Excel – Evaluating commas
Download files: http://interactiveds.com.au/software/Eval2.xls, http://interactiveds.com.au/software/Eval-Integration.xlsb
There is also a “unit aware” version of the Eval function, but this will be described in a few days when looking at unit conversion functions.

EvalInt Function

Eval function examples
Pingback: EvalA update and examples | Newton Excel Bach, not (just) an Excel Blog