← Excel and spreadsheets

Ranges of cells

A colon joins two corners: B2:B9 is every cell from B2 down to B9.

Start this lesson

A range is a block of cells. Write the top-left cell, a colon, then the bottom-right cell. B2:B9 is the eight cells in column B from row 2 to row 9. B2:D4 is a rectangle three columns wide and three rows tall, nine cells in all. A comma lists separate cells, so B2,B9 is just two cells.

Example: How many cells are in B3:D7?

  1. B, C, D: 3 columns — Count the columns, both ends included
  2. 3 to 7: 5 rows — Count the rows, both ends included
  3. 3 times 5 = 15 cells — Columns times rows

Why it works: Two opposite corners pin down a rectangle, so the colon fills in every cell between them. Both ends are inside, which is why you add one when counting rows.

Tip: Rows 3 to 7 is 5 rows, not 4: subtract and add one, because both ends count.