Excel itself doesn't have this capability built in, but long I created a User Defined Function to do this sort of evaluation.
This UDF would need to be added to your workbook before you can use it as a formula in a cell.
How to install the User Defined Function:
1. Open up your workbook
2. Get into VB Editor (Press Alt+F11)
3. Insert a new module (Insert > Module)
4. Copy and Paste in your code (given above)
5. Get out of VBA (Press Alt+Q)
6. Save as a macro-enabled workbook
The function is installed and ready to use.
Now the function only evaluates the text string found in a single cell.
If you have:
A1: 4
B1: >
C1: 3
You would next need to compile those values into a single cell. So put in this formula:
D1: =A1&B1&C1
Now you can use this new function:
E1: =RESOLVE(D1)
The added benefit of this function is that it will RESOLVE pretty much any equation fed into it, within reason.
Bookmarks