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

=SORTBY(A2:A21, RANDARRAY(20))

The outer function is SORTBY, so the final answer is what SORTBY returns. It uses 2 functions and 1 reference.

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.

SORTBYFunction

Sorts the contents of a range or array based on the values in a corresponding range or array.

  1. array
    A2:A21

    The cells A2:A21: 20 cells in one column.

    Array is a range of cells or an array constant.

  2. by_array1
    RANDARRAY(20)
    RANDARRAYFunction

    Returns an array of random numbers between 0 and 1. However, you can specify the number of rows and columns to fill, minimum and maximum values, and whether to return whole numbers or decimal values.

    1. rows(optional)
      20

      The number 20.

      Rows is the number of rows.

See it calculate

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

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

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