Field Guide

What is a range in Excel: cell ranges like A1:B10 and how to find the statistical range

Updated

In Excel, range means one of two things, and which one depends on the question. A cell range is a rectangular block of cells, written from its top-left cell to its bottom-right cell as A1:B10, and it is what a formula reads when you write =SUM(A1:A10). The statistical range is a single number, the largest value in a set minus the smallest, which you calculate with =MAX(range)-MIN(range). This page takes the two meanings in turn, then looks at what happens when a range tucked inside a formula ends up covering the wrong cells.

What is a cell range in Excel?

A cell range is a group of cells you point at as one thing. You write it as the top-left cell, a colon, and the bottom-right cell, so A1:B10 is the whole block that runs from A1 in the top-left corner down to B10 in the bottom-right, taking in every cell between the two. Microsoft’s definition is broad: “A reference identifies a cell or a range of cells on a worksheet, and tells Excel where to look for the values or data you want to use in a formula.” A range is simply the version of that address that covers more than one cell.

The : between the two corners is the range operator, the character that turns two single addresses into one block. The rest of the signs that show up in a formula are collected in the formula symbols glossary.

The shape of a range depends on which corners you give it:

All three are ranges, and the notation is the same in each case: top-left corner to bottom-right corner.

A B C
1 Student Test 1 Test 2
2 Ada 82 88
3 Bo 91 79
4 Cy 74 95
B2:C4 is a rectangular range: the block from the top-left cell B2 to the bottom-right cell C4. It is two columns wide and three rows deep, so it holds six cells, the six test scores.

When you hand a range to a function, that range is what the function works on. =SUM(B2:B4) reads the single-column range B2:B4 and adds the three Test 1 scores to 247. That is all a formula is doing when it names a range: reading a block of cells, then calculating over it. What a formula is, and how you enter one, has its own guide.

fx
=SUM(B2:B4)

How do you select a range in Excel?

You select a range two ways. Type its reference, such as A1:B10, into the Name Box at the left of the formula bar and press Enter, and Excel selects that exact block. In Excel for the web, clicking a cell and dragging across the neighboring cells extends the selection to cover the range.

A range reference can also be pinned with dollar signs, $A$1:$A$10 instead of A1:A10, so a fill-down keeps reading the same block. That locking is the whole subject of cell references in Excel.

What is the statistical range, and how do you find it?

The other meaning of range has nothing to do with cell addresses. In statistics, the range of a set of numbers is its spread: the largest value minus the smallest, reported as a single number. A group of test scores from 74 to 95 has a range of 21, however many scores sit in between.

Excel has no dedicated RANGE function, so you build the calculation from two functions it does have. MAX returns the largest number in a range and MIN returns the smallest, so subtracting one from the other gives the spread:

E2
fx
=MAX(B2:C4)-MIN(B2:C4)
A B C D E
1 Student Test 1 Test 2 Range
2 Ada 82 88 21
3 Bo 91 79
4 Cy 74 95
The six scores fill the range B2:C4. =MAX(B2:C4)-MIN(B2:C4) in E2 returns 21: the largest score is 95, the smallest is 74, and 95 minus 74 is 21. The range is that one number, not the block of cells.

MAX and MIN look only at the numbers in the range. They ignore empty cells, text, and logical values, so a stray label or a gap in the middle of the block does not throw the answer off, and only the real numbers count toward the largest and the smallest.

The direction matters: the range is always MAX minus MIN, never the reverse. MIN minus MAX would return a negative number, and the spread of a set of values is never negative. The range is also a single value, not the cells themselves, which is where it parts company with a cell range.

If you would rather not type the functions, the same MAX and MIN sit on the AutoSum button. On the Home tab, select the arrow next to Sum in the Editing group and choose Max or Min, and Excel writes the formula for you. The button gives you one or the other, so you still subtract the smaller result from the larger to reach the range. AutoSum covers the button in full.

The words sit close together, so one more distinction helps: the statistical range tells you how far apart the numbers are, while counting how many cells in a range hold a value is a different question, answered by COUNT, COUNTA, and COUNTBLANK. The spread and the tally are not the same measurement.

Cell range, named range, and statistical range

Three things share the word range, and keeping them apart clears up most of the confusion:

The first two are about where the data is; the third is about what the data does. A formula like =MAX(Scores)-MIN(Scores) leans on all three at once: a named range, Scores, that points at a cell range, B2:C4, fed into the statistical range.

When a formula’s range covers the wrong cells

Because a range is just an argument, the block a formula reads is one keystroke away from changing. Add a row of data below a total and the SUM above it may still stop at the old last row; trim a reference by hand and a value drops out. =SUM(A1:A10) becomes =SUM(A1:A9), and the total recalculates to a smaller figure with no error value to say a row went missing:

=SUM(A1:A9)
The range ends at row 9. If the numbers run down to row 10, the last value never reaches the total, and the cell shows a smaller number instead.

The short version

A range is quick to write and quick to mis-set: one keystroke moves where a total’s block begins or ends, and only the number changes. To see which cells a formula’s range picked up or dropped, and which totals moved with them, compare the edited model against the version before the change.

Frequently asked questions

What is a range in Excel?
Range means one of two things in Excel. A cell range is a rectangular block of cells you refer to as one address, written from the top-left cell to the bottom-right cell with a colon between them, as in A1:B10. The statistical range is a single number, the largest value in a set minus the smallest, which you calculate with =MAX(range)-MIN(range).
How do you find the range in Excel?
Subtract the smallest value from the largest with one formula, such as =MAX(B2:C4)-MIN(B2:C4). MAX returns the largest number in the range and MIN returns the smallest, so the difference is the statistical range, a single number. For the scores 82, 91, 74, 88, 79, 95, MAX is 95 and MIN is 74, so the range is 21.
What does A1:B10 mean in Excel?
A1:B10 is a cell range: the rectangular block of cells from the top-left cell A1 to the bottom-right cell B10, including both corners and every cell in between. The colon is the range operator. A1:B10 is two columns wide and ten rows deep, while A1:A10 is a single column and A1:E1 is a single row.
What is the formula for range in Excel?
Excel has no single RANGE function, so you build the statistical range from MAX and MIN: =MAX(range)-MIN(range). For example, =MAX(B2:B20)-MIN(B2:B20) returns the spread of the numbers in B2:B20. MAX and MIN read only the numbers, ignoring blank cells and text, so a stray label does not affect the result.
What is the difference between a cell range and a named range?
A cell range is the block itself, addressed by its corners, like B2:B5. A named range gives that same block a plain name, so Scores can stand in for B2:B5 in a formula. The named range is the name; the cell range is the cells it points at. Naming a range is a separate topic with its own guide.
Do MAX and MIN count text or blank cells in a range?
No. When MAX and MIN read a range, they use only the numbers in it and ignore empty cells, text, and logical values. So a column that holds a few figures stored as text still returns a correct largest and smallest from the real numbers, though those text entries are not counted.

Catch the errors before they ship

Reviewing a change to a model? Compare the two versions in your browser and see every changed cell, formula, and value. It's free, and nothing leaves your computer.