A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Dear Dale,
The desktop version of Excel includes Evaluate Formula, which steps through your formula in the same order Excel calculates it, so you can see exactly where the result changes from what you expect.
To use it, follow these steps:
- Select the cell containing the formula.
- Go to Formulas > Evaluate Formula (in the Formula Auditing group).
- Select Evaluate repeatedly. Each time, the underlined part is replaced with its result.
- If the underlined part refers to another cell with a formula, select Step In to evaluate that formula, then Step Out to return.
For example, if F2:F5 contains 2, 3, 4, 5, the formula below would be evaluated like this:
=IF(AVERAGE(F2:F5)>50,SUM(G2:G5),0)
=IF(3.5>50,SUM(G2:G5),0)
=IF(FALSE,SUM(G2:G5),0)
=0
This shows that the SUM part isn't the problem. Excel never evaluates it, because the test returns FALSE.
You can also check a single part of a formula quickly. In the formula bar, select a complete part of the formula, such as AVERAGE(F2:F5), and press F9 to see its result. Then press Esc to leave the formula unchanged. If you press Enter instead, the selected part is replaced with its value permanently.
Please keep in mind that formulas with functions such as RAND, NOW, TODAY, OFFSET or INDIRECT may recalculate during evaluation, so their values can look different from the final result.
For reference: Evaluate a nested formula one step at a time | Microsoft Support
I hope this helps you find the issue. If the formula still behaves unexpectedly, feel free to post it as text along with a few sample values and the result you expect, with any confidential data removed.
If the answer is helpful, please click "Yes" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in the forum documentation to enable e-mail notifications if you want to receive the related email notification for this thread.