Free tool

Excel Formula Explainer

Paste any formula. See what every function, range and operator does in plain English, watch Excel calculate it step by step, and catch common mistakes.

At a glance

=IF(XOR(B2="Yes", C2="Yes"), "", "Check discounts")

The outer function is IF, so the final answer is what IF returns. It uses 2 functions and 2 references.

IFXORB2C2

Piece by piece

Outside in: the outer function first, with each argument and the pieces inside it. Green badges show each piece's value with the sample data below.

IFFunction

Specifies a logical test to perform.

  1. logical_test
    XOR(B2="Yes",C2="Yes")

    Logical_test is any value or expression that can be evaluated to TRUE or FALSE, e.g. B2>100.

    XORFunction

    Returns a logical exclusive OR of all arguments.

    1. logical1
      B2="Yes"

      logical1,logical2,... are 1 to 255 conditions to test that can be either TRUE or FALSE.

      Comparison (=)Operator

      Checks whether B2 is equal to "Yes", giving TRUE or FALSE.

      B2The value in cell B2.
      "Yes"The text "Yes".
    2. logical2(optional)
      C2="Yes"

      logical1,logical2,... are 1 to 255 conditions to test that can be either TRUE or FALSE.

      Comparison (=)Operator

      Checks whether C2 is equal to "Yes", giving TRUE or FALSE.

      C2The value in cell C2.
      "Yes"The text "Yes".
  2. value_if_true
    ""

    Empty text (""), which looks like a blank cell.

    Value_if_true is the value that is returned if logical_test is TRUE. If omitted, TRUE is returned.

  3. value_if_false(optional)
    "Check discounts"

    The text "Check discounts".

    Value_if_false is the value that is returned if logical_test is FALSE. If omitted, FALSE is returned.

See it calculate

Like Excel's Evaluate Formula: the highlighted part is worked out next, then replaced by its value.

ABC
1
2

We made this data up so you can see the formula work. Type over any cell to try your own values.

What the explainer shows you

Every piece, in plain English

Each function's arguments are named and explained, ranges are colour-coded like Excel, and lookup settings like 0 or FALSE are spelled out.

A live calculation

We build a small sample sheet under your formula so you can watch it calculate step by step — and see exactly where an error starts.

Mistakes caught early

Approximate-match lookups, numbers stored as text, missing brackets, misspelt functions and slow whole-column maths are flagged with a fix.

Want the details on one function? Browse every Excel function