Practice

Excel formula explainer

Type or paste a formula and see how Excel works it out: every function, operator and cell reference, step by step, from the innermost part to the final result.

How Excel works out a formula

Excel never reads a formula from left to right like a sentence. It starts with the parts that other parts depend on: the arguments of a function are worked out before the function itself, and the innermost function before the one around it. In =ROUND(SUM(E2:E9)/COUNT(E2:E9),1) Excel first reads the two ranges, then works out SUM and COUNT, then the division, and only then ROUND. The explainer lists the steps in exactly that order, and each step shows the value Excel has at that moment, so you can see where a surprising result or an error first appears.

Between operators, Excel follows a fixed order of precedence. Operators higher in this table are calculated first; operators on the same line are calculated from left to right. Brackets override everything.

OrderOperatorWhat it does
1:Range (A1:B5)
2-Negation (−5)
3%Percent (10% is 0.1)
4^Power (2^3 is 8)
5* and /Multiply and divide
6+ and -Add and subtract
7&Join text
8= < > <= >= <>Compare (TRUE or FALSE)

Two results surprise most people. =-2^2 returns 4, not −4, because negation comes before the power: Excel squares −2. Write =-(2^2) for −4. And =10+5% is 10.05, because the percent sign turns 5 into 0.05 before the addition. Try both in the formula bar above and watch the steps.

Why some parts say “not calculated”

IF, IFERROR, IFNA and IFS only work out the part they need. When the test of an IF is TRUE, the value-if-false part is never calculated, so an error or a slow calculation in that part cannot affect the result. The explainer shows those parts in grey. This is also why =IF(B2=0,0,A2/B2) safely avoids the #DIV/0! error: the division only happens when B2 is not zero. Logical tests are explained in IF and logical formulas: AND, OR, NOT, IFS and SWITCH.

Lists of values (arrays)

When a step reads a range such as E2:E9, the result is a list of eight values, written the way Excel writes arrays: commas between columns and semicolons between rows, as in {4;12;3;25}. An operator applied to a list works item by item, so B2:B9="East" gives a list of TRUE and FALSE values, which FILTER or SUMPRODUCT can then use. Long lists are cut after twelve items; the size is shown next to them.

Do the same inside Excel

Excel for Windows has the same tool built in. Select the cell with the formula and choose Formulas > Evaluate Formula (in the Formula Auditing group). Each click on Evaluate replaces the underlined part with its value, and Step In opens the formula of a referenced cell. A quicker trick for long formulas: click in the formula bar, select one part, such as SUM(E2:E9), and press F9 to see its value. Press Esc afterwards, otherwise Excel replaces that part of the formula with the value.

Errors are easier to fix once you know which step produces them. Each error step links to a page about that error, such as #DIV/0! error in Excel: causes and how to fix it or #N/A error in Excel: causes and how to fix it, and Formula errors: what each one means and how to fix it covers tracing errors through a workbook.

What the explainer can and cannot do

New to formulas? Start with Formula basics: operators and order of operations, then come back and explain the examples from any function page.