To evaluate a formula in Excel, use the Evaluate Formula feature found under Formulas > Formula Auditing > Evaluate Formula. This tool lets you step through each part of a complex formula one calculation at a time, showing exactly how Excel arrives at the final result.
Why You Would Evaluate a Formula
When a formula returns an unexpected value or an error like #VALUE! or #N/A, it can be hard to see what went wrong just by staring at the cell. The Evaluate Formula feature breaks the calculation into its constituent parts, so you can inspect each intermediate result. This is especially useful for:
- Nested functions like
IFinsideSUMIFSorVLOOKUPinsideIFERROR. - Array formulas that process multiple values at once.
- Formulas that reference other cells which themselves contain formulas.
- Debugging a formula you inherited from a colleague or downloaded from a template.
How to Use Evaluate Formula in Excel (Windows and Mac)
On Excel for Microsoft 365 (Windows):
- Select the cell containing the formula you want to evaluate.
- Go to the Formulas tab.
- In the Formula Auditing group, click Evaluate Formula.
- In the dialog box, click Evaluate to see the result of the underlined expression. Each click calculates one more step.
- Click Step In to see the value of a referenced cell that contains a formula, and Step Out to return to the main formula.
On Mac, the path is identical: Formulas > Evaluate Formula. The dialog works the same way.
On Excel for the web, the Evaluate Formula feature is not available. As a workaround, you can use the Trace Precedents feature (under Formulas > Trace Precedents) to see which cells feed into the formula, or manually break the formula into smaller parts in separate cells.
What the Dialog Box Shows
The Evaluate Formula dialog displays the formula with the part to be evaluated next underlined. For example, if your formula is =IF(A1>10,"High","Low"), the first evaluation might show A1 underlined. Clicking Evaluate replaces A1 with its current value, say 15. The next click evaluates the comparison 15>10 to TRUE, and the final click returns "High".
If a referenced cell contains a formula, Step In lets you see that cell’s own evaluation. This is handy for multi-level dependencies. Note that Step In is disabled if the reference is a constant or a blank cell.
Common Problems and Limitations
- Evaluate Formula is greyed out: This happens when the active cell is not on the same sheet as the formula, or when the workbook is in edit mode. Click away and reselect the cell.
- It only evaluates the first formula in an array: For dynamic array formulas (like
SEQUENCEorFILTER), Evaluate Formula shows the spill range but may not step through each element individually. - Volatile functions: Functions like
NOW()orRAND()recalculate every time you click Evaluate, so the displayed value may change. - External links: If the formula references another workbook that is closed, Evaluate Formula may show the cached value or prompt you to update links.
Alternatives to Evaluate Formula
If Evaluate Formula isn’t enough, try these other auditing tools:
- Trace Precedents / Trace Dependents (Formulas tab): Draws arrows to show which cells affect or are affected by the selected formula.
- F9 key: In the formula bar, select a part of the formula and press F9 (Windows) or Fn+F9 (Mac) to see its computed value. Press Esc to cancel without changing the formula.
- Watch Window (Formulas tab): Lets you monitor the value of a cell even when you navigate to other sheets.
- Error Checking (Formulas tab): Automatically finds common errors and offers suggestions.
Example: Evaluating a Nested IF Formula
Suppose cell C1 contains =IF(B1>=90,"A",IF(B1>=80,"B","C")) and B1 contains 85. Selecting C1 and launching Evaluate Formula will:
- Underline
B1– click Evaluate to show85. - Underline
85>=90– click Evaluate to showFALSE. - Underline the second
IF– click Evaluate to showIF(85>=80,"B","C"). - Underline
85>=80– click Evaluate to showTRUE. - Underline
"B"– click Evaluate to show the final resultB.
Frequently Asked Questions
Can I evaluate a formula in Google Sheets?
No, Google Sheets does not have an Evaluate Formula feature. Instead, you can use the F9 equivalent by selecting part of the formula in the formula bar and pressing Ctrl+Enter (Windows) or Cmd+Enter (Mac) to temporarily replace that part with its value – but this changes the formula, so use it on a copy. Alternatively, use the Trace Precedents arrows under Data > Data cleanup (not available in all regions) or simply break the formula into smaller pieces.
Why does Evaluate Formula show a different value than the cell?
This usually happens because the formula recalculates between evaluations, especially if it contains volatile functions like RAND() or NOW(). It can also occur if the workbook is set to manual calculation mode and you haven’t pressed F9 to recalculate before opening the dialog.
Can I evaluate a formula that contains a #REF! error?
Yes, Evaluate Formula will show the error at the step where it occurs, but you cannot step past it. The error often appears when a referenced cell has been deleted. You’ll need to fix the reference before evaluating further.
Is there a keyboard shortcut for Evaluate Formula?
There is no default shortcut, but you can add the command to the Quick Access Toolbar and then press Alt followed by the number key that appears. On Mac, you can assign a shortcut via Tools > Customize Keyboard.
Does Evaluate Formula work with array formulas?
It works with legacy array formulas (entered with Ctrl+Shift+Enter) but shows only the first result. For dynamic array formulas (Excel 365), it may show the spill range but not individual elements. In those cases, use the F9 trick on a selected portion of the formula.
Related
- Software Entry Data Backup: How It Works & Best Practices
- 100 Computer Shortcut Keys: Windows & Mac Guide
- Random Number SQL Server: RAND, NEWID, and CRYPT_GEN_RANDOM
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Formulas & functions
- MySQL String Aggregate Functions: GROUP_CONCAT ExplainedMySQL’s primary string aggregate function is GROUP_CONCAT(), which concatenates values from multiple rows into a single string. For…
- Excel Sort by Name and Rank: 2 Easy MethodsTo sort by name and then by rank in Excel, use the Sort dialog box (Data > Sort)…
- Excel SUMIF Exclude Text: Formula & ExamplesTo exclude text in a SUMIF, use the criteria "<>*" (not equal to any text) or combine SUMIF…
- How to Divide in Excel: Formulas & TipsDividing numbers in Excel is done with the forward slash / in a formula, like =A1/B1. This guide…
- Power Query XLOOKUP From Another Table: How It WorksPower Query does not run the Excel XLOOKUP function inside a query. To return columns from another table,…
- COUNTIF Is Blank? Use These FormulasThe direct answer: there is no COUNTIF function that counts truly blank cells by itself, but you can…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.