Sub topic 1
Cells, Ranges, and A1 Notation
Every task in this tutorial depends on one skill: naming the cells you want to work on. This chapter explains how Excel addresses cells and ranges in A1 notation. It also covers the variations you will meet when you select, copy, move, and fill data in later chapters.
Prerequisites
This chapter assumes you can already do the following:
- Open and save a workbook.
- Type text, numbers, and simple formulas into a cell.
- Recognize rows, columns, and the main parts of the Excel ribbon.
You do not need to know any functions. A formula such as =B2+C2 is enough.
The grid: cells, rows, and columns
A worksheet is a grid. Columns run vertically and are labeled with letters. Rows run horizontally and are labeled with numbers. A cell is the box where one row and one column cross.
Columns go A to Z, then AA to AZ, then BA to BZ, and so on up to XFD. That gives 16,384 columns. Rows go from 1 to 1,048,576. A worksheet therefore holds about 17 billion cells, although you will use very few of them.
A workbook can hold many worksheets. Each worksheet has its own grid, so cell B2 on one sheet is a different cell from B2 on another.
A1 notation
A1 notation names a cell by its column letter or letters, followed by its row number. There are no spaces between them.
A1is the cell where column A meets row 1, the top-left corner.C5is in the third column, fifth row.AB12is in column AB, row 12.
Excel shows the address of the active cell in the Name Box, to the left of the formula bar. The active cell is the one with the thick green border. It is the cell that receives whatever you type.
A cell has a value, which is what you see, and it may have contents, which is what you typed. If you type =B2+C2 in D2, the contents are the formula and the value is the result. The address D2 names the cell in either case.
Reading a formula as addresses
In a formula, an address stands for whatever is in that cell. The formula =B2*C2 means "multiply the number in B2 by the number in C2". When B2 changes, the formula result changes too. This link between addresses and values is why copying formulas works, and why the later chapter on references matters.
Ranges
A range is a group of cells treated as one unit. A range address uses a colon between its first and last cells.
| Range | Meaning |
|---|---|
| `B2:B6` | Five cells in column B, rows 2 to 6 |
| `B2:D2` | Three cells in row 2, columns B to D |
| `B2:D6` | A block of 3 columns and 5 rows, 15 cells |
| `B:B` | The whole of column B |
| `B:D` | Columns B, C, and D in full |
| `3:3` | The whole of row 3 |
| `3:6` | Rows 3 to 6 in full |
For a block, the two addresses are opposite corners. The colon means "from this cell through that cell, and everything between". B2:D6 and D6:B2 describe the same block, although Excel normally rewrites an address with the top-left corner first.
Ranges appear in formulas as arguments to functions, in selections, in the Name Box, and in dialogs. This formula adds a five-cell range:
=SUM(B2:B6)The active cell inside a selection
When you select a range, one cell stays white while the others turn grey. The white cell is the active cell. Typing goes into that cell only, and the Name Box shows its address. Keep this in mind, because commands such as paste and fill treat the active cell as the starting point.
Non-adjacent ranges and the union
You can select several separate areas at once. In a reference, you join them with commas:
=SUM(A1:A3,C1:C3)This adds two ranges that do not touch. The comma is the union operator. In some regional settings the separator is a semicolon, so use whichever your Excel shows in its function tooltips.
A space between two ranges is the intersection operator. It returns only the cells the two ranges share:
=SUM(B1:B5 A3:D3)Here the shared cell is B3, so the result is the value in B3. Intersection is rare in everyday work. Knowing it exists helps you understand why a stray space in a range address can produce odd results or a #NULL! error.
References to other sheets
To refer to a cell on another worksheet, put the sheet name first, then an exclamation mark:
=Sheet2!B2
=SUM(Sales!B2:B6)If the sheet name contains spaces or special characters, wrap it in single quotes:
='Q1 Sales'!B2A range reference is always on a single sheet. Writing Sheet2!A1:B2 means that block on Sheet2.
Naming ranges
An address such as B2:B6 is exact but hard to read. A defined name gives a cell or range a label you choose. You can create one by selecting the range, typing a name in the Name Box, and pressing Enter.
Name Box: B2:D10
Press Enter to select the range B2:D10The same box works in reverse. Typing a range address into the Name Box and pressing Enter selects that range without scrolling or dragging. This is the first of several faster ways to select cells that a later chapter covers.
Name rules:
- Start with a letter, an underscore, or a backslash.
- Use no spaces. Use an underscore, as in
Tax_Rate. - Do not use a name that looks like a cell address, such as
A1orTAX2026, because Excel would read it as a column and row.
Where the notation matters in practice
The addresses in this chapter show up in every operation that follows.
- Selecting. The Name Box and the Go To dialog both accept addresses and ranges.
- Copying and moving. The source and destination are ranges. A copied block of 3 by 2 cells needs a destination with room for 3 by 2 cells.
- References in formulas. Copying a formula changes its addresses by the distance moved, unless you fix part of an address.
- Filling. A fill extends from a source range across a target range.
The fourth point of the next chapters depends on a feature of A1 notation not yet shown, the dollar sign. Compare these formulas:
C2: =B2*$E$1
C3: =B3*$E$1B2 is a relative reference. When the formula moves down one row, it becomes B3. $E$1 is an absolute reference. The dollar signs lock the column and the row, so it stays E1 wherever the formula goes. A later chapter explains the rules in full. For now, recognize that a dollar sign is part of the address.
A1 style and R1C1 style
A1 is the default reference style, but Excel also supports R1C1, where both the row and column are numbers. In R1C1, cell B2 is R2C2. You can switch styles under File, Options, Formulas, and then the "R1C1 reference style" box. If your column headings suddenly show numbers instead of letters, this option is on. Turn it off to return to A1.
Common errors with addresses and ranges
| Symptom | Likely cause | Fix |
|---|---|---|
| Column headings show numbers | R1C1 style is on | Clear "R1C1 reference style" in Options |
| `#REF!` in a formula | The referenced cell or sheet was deleted | Undo, or rewrite the reference |
| `#NAME?` for a range name | The name is misspelled or does not exist | Check the name in the Name Manager |
| `#NULL!` | A space was used between ranges that do not share cells | Use a colon or a comma instead |
| Formula uses the wrong cells after copying | The reference was relative when it needed to be absolute | Add dollar signs to the part that must stay fixed |
| SUM misses a value | The range stops one cell short | Reselect the range or edit the address |
How the pieces fit together
The diagram shows how an address builds up from a cell to a reference.
Worked example
You keep a small price list in columns A to C:
| Row | A | B | C |
|---|---|---|---|
| 1 | Item | Price | Quantity |
| 2 | Pen | 2 | 10 |
| 3 | Pad | 5 | 4 |
| 4 | Ink | 8 | 3 |
Answer these using only A1 notation.
- The prices are in
B2:B4. - The whole table, headings included, is
A1:C4. - The cell holding the quantity of Pad is
C3. - To total the price column, use
=SUM(B2:B4), which returns 15. - To total prices and quantities together, use
=SUM(B2:C4), which returns 32. The block covers six cells. - To total only the Pen and Ink quantities, use
=SUM(C2,C4), which returns 13.
Notice that each answer is an address or a range, and that none of them depends on what the cells contain. If you change a price, the formulas update, but the addresses stay the same.
Summary
- A cell address is a column letter followed by a row number, such as
C5. - A range joins two addresses with a colon and covers the block between them.
- A comma joins separate areas, and a space gives their overlap.
- A sheet name and an exclamation mark point to another worksheet.
- A dollar sign inside an address locks part of it for copying.
- The Name Box shows the active cell and accepts an address to select a range.
Exercise
A worksheet has a block of data from column B to column D and from row 2 to row 10. Write the range address for the block. Then write the formula that adds the whole block, and say what changes if the formula is placed on a sheet named Totals while the data is on a sheet named Data.
Show answer
The range is B2:D10. The formula is =SUM(B2:D10). If the formula is on Totals and the data is on Data, the formula must name the sheet: =SUM(Data!B2:D10).
Exercise
What is the difference between the references B2, $B2, and $B$2 when a formula is copied one column to the right and one row down?
Show answer
B2 becomes C3, because both the column and the row are relative. $B2 becomes $B3, because the column is locked and the row is relative. $B$2 stays $B$2, because both parts are locked.