Cell addresses and ranges
Find your way around7 min
A colleague in finance writes that the amounts in C2:C14 don't match the invoices, and that D9 looks wrong. Before you can check, you need to know exactly which cells she means, and how many there are.
How it works
A cell's address is its column letter followed by its row number: B7 is column B, row 7. After column Z the letters double up, AA to AZ, then BA, and so on to the last column, XFD. Excel uses addresses in formulas, in the Name Box and in its messages.
A range is a rectangle of cells, written as its top-left cell, a colon, and its bottom-right cell. A2:D10 means every cell from A2 to D10. Some you'll see often:
B2:B9is part of one column, andA3:F3part of one row.C:Cis the whole of column C, and5:5the whole of row 5.A2:A9,is two ranges joined by a comma, with column B left out.C2:C9
To count the cells in a range, multiply its columns by its rows, counting both ends. A2:D10 has 4 columns (A, B, C and D) and 9 rows (2 to 10), so it holds 36 cells. Subtracting the row numbers gives one too few: 10 minus 2 is 8, and rows 2 to 10 are nine rows.
Example
The stock count for three warehouses fills B2:D6:
Common mistakes
7BorB-isn't an address. Write the letter, then the number, with nothing between them:7 B7.B2,when you meanD5 B2:D5. The comma means just those two cells, and the colon everything between them.- Counting rows by subtracting. Rows 5 to 12 are eight rows, not seven, because both ends count.
In short
- An address is the column letter, then the row number: B7.
- A range is two corners with a colon between them: A2:D10 is everything from A2 to D10.
- A range holds its columns times its rows, counting both ends.
- Next, select ranges in Select ranges, rows and columns, and add one up in Add it up with SUM.
Practice
3 exercises · free, no account needed