What a cell reference is
Every cell on an Excel worksheet has an address made from a column letter and a row number. The top-left cell is A1, the first column of the first row. The cell where column C meets row 5 is C5. A formula that uses C5 pulls in whatever value sits there, so =C5*2 doubles it.
Modern Excel has 16,384 columns, running from A to XFD, and 1,048,576 rows. You rarely need to think about the outer edges, but the same addressing rules apply everywhere.
A colon joins two corners of a range. B2:B20 covers every cell from B2 down to B20. You can also refer to a whole column with B:B or a whole row with 3:3. A whole-column reference suits a total that should grow as rows are added, though it can slow down a large workbook, so use it with care.
Relative references move when you copy
By default, a reference is relative. Excel stores it as a distance from the cell that holds the formula, not as a fixed address. Put =B2*C2 in D2 and copy it down to D3, and it becomes =B3*C3. The formula moved one row, so its references moved one row.
That behavior is what makes filling a formula down a column so quick. It is also why a copied formula sometimes gives an unexpected answer. For the usual causes, read why does copied formula give wrong result in excel.
Absolute references stay put
Put dollar signs in front of the column letter, the row number, or both, and the reference becomes absolute. $C$5 always points to C5, wherever the formula ends up.
Dollar signs control what happens when you copy or fill a formula. They don’t stop Excel from adjusting references when you insert or delete rows and columns. Excel adjusts every reference in that case, locked or not.
Absolute references suit a value that every row shares, such as a tax rate in one cell. To learn where the dollar signs go, see how to lock cell reference in excel.
Mixed references lock one part
A mixed reference locks only one part:
$B2keeps column B fixed. Copied across, it stays in column B. Copied down, the row number changes.B$2keeps row 2 fixed. Copied down, it stays on row 2. Copied across, the column letter changes.
Mixed references are useful in tables where one set of values runs across a header row and another runs down a label column. The F4 key cycles through all four forms while you edit a formula, as described in what does f4 do in excel formula.
References to other sheets and workbooks
Put a sheet name and an exclamation mark in front of an address to point at another sheet. =Sheet2!B4 returns the value in B4 on the sheet named Sheet2. If the sheet name contains spaces, wrap it in single quotes, as in ='Q1 Sales'!B4. Excel adds those quotes when you click to build the reference. The clicking method is explained in reference cell on another sheet in excel.
A reference to a different workbook adds the file name in square brackets. Those links can break when a file moves. For the common causes, read why do links to other workbooks break in excel.
Spill references in Microsoft 365
In Microsoft 365, a formula can return several results that fill the cells around it. This is called spilling. A reference that ends in # points to the whole spill range. A1# means the full range that spills from A1.
Names as an alternative
A name can stand in for a cell or a range. =Tax_Rate*B2 reads more clearly than =$F$1*B2. Names are absolute by default, so they don’t shift when a formula is copied. Creating them is covered in how to create named range in excel.
Checking which cells a formula uses
Excel colors each reference in a formula while you edit it and draws a matching outline on the sheet. For a broader check:
- Press Ctrl+` (the key below Esc on most keyboards) to show every formula on the sheet instead of its result. Press it again to switch back.
- Draw arrows from a formula to the cells it uses with Trace Precedents. The steps are in how to trace precedents in excel.
- Step through a calculation one part at a time with Evaluate Formula, which is useful when a result looks wrong but the references look right.
Errors caused by references
Two common errors come straight from references:
#REF!appears when a formula points at a cell that no longer exists, usually because the row, column or sheet it used was deleted.- A circular reference happens when a formula refers back to its own cell, directly or through other cells. Excel warns about it, and how to fix circular reference in excel walks through the fix.
Which menus to expect
Menu names here follow Microsoft 365 on Windows. Mac versions and older editions of Excel use similar names, but some commands sit in different places.