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

=INDEX(B2:M20, XMATCH(P1, A2:A20), XMATCH(P2, B1:M1))

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

INDEXXMATCHB2:M20P1A2:A20P2B1:M1

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.

INDEXFunction

Uses an index to choose a value from a reference or array.

INDEX + MATCH: MATCH finds the position, then INDEX returns the value at that position.

  1. array
    B2:M20

    The cells B2:M20: 12 columns × 19 rows (228 cells).

    Array is a range of cells or an array constant.

  2. row_num
    XMATCH(P1,A2:A20)

    Row_num selects the row in array to return a value from.

    XMATCHFunction

    Returns the relative position of an item in an array or range of cells.

    1. lookup_value
      P1

      The value in cell P1.

      Lookup_value is the value to find. It can be a value, a reference or a text string.

    2. lookup_array
      A2:A20

      The cells A2:A20: 19 cells in one column.

      Lookup_array is the range of cells to search.

  3. column_num(optional)
    XMATCH(P2,B1:M1)

    Column_num selects the column in array to return a value from.

    XMATCHFunction

    Returns the relative position of an item in an array or range of cells.

    1. lookup_value
      P2

      The value in cell P2.

      Lookup_value is the value to find. It can be a value, a reference or a text string.

    2. lookup_array
      B1:M1

      The cells B1:M1: 12 cells in one row.

      Lookup_array is the range of cells to search.

See it calculate

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

ABCDEFGHIJKLMNOP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

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