Copying formulas: relative references
Copy =B4*C4 from D4 to D5 and it arrives as =B5*C5. Microsoft uses this exact example to explain relative references.
References remember a direction
Write a formula once, then copy it down a column, and it works on every row. This is possible because an ordinary reference is relative. Microsoft explains it with A2 seen from C2: the reference really means "the cell two columns to the left, in the same row". Copy the formula somewhere else and it still means two columns to the left of wherever it now sits. So =B4*C4 in D4, which means "the two cells to my left", becomes =B5*C5 when copied to D5.
The rule is simple arithmetic on the address. Move the formula down by some rows and every row number in it grows by the same amount. Move it right by some columns and every column letter moves the same number of letters. Microsoft's table copies =A1 two cells down and two cells to the right and gets =C3. Copying =A2+1 from B2 up to B1 gives =A1+1. Nothing about the formula's meaning changes, only where it looks.
Three ways to copy
You can copy and paste the cell as usual. You can drag the small square at the bottom-right corner of the selected cell, called the fill handle, down or across. Or you can select the formula together with the empty cells below it and press Ctrl+D to fill down, or select it with the cells to its right and press Ctrl+R to fill right. Google's shortcut list gives Ctrl+D and Ctrl+R for Sheets (⌘+D and ⌘+R on a Mac), and Excel on Windows uses the same keys. The lab has buttons for these, plus a Select range button for touch screens.
To see what actually happened, show the formulas instead of the results. Google Sheets does this with Ctrl+~ according to its shortcut list, and Excel has a Show Formulas button on the Formulas tab. Reading a column of formulas side by side is the quickest way to spot the one row that does not follow the pattern, for example a cell where someone typed a number over the formula.
Copying only moves the references, not the values. If a formula refers to a cell that is meant to stay put, such as a tax rate in one cell at the top, a relative reference will slide away from it as you fill down, and the results will be wrong without any error showing. That problem has its own fix, the absolute reference, which opens the Formulas course.
Falling off the edge
A relative reference can be pushed somewhere that does not exist. Copy =A1+1 from B1 one column left into A1 and the reference would have to point left of column A. There is nothing there, so the program writes #REF! into the formula itself, and the cell shows the #REF! error. The same thing happens when you copy a formula that looks one row up into row 1. When a copied formula suddenly shows #REF!, show formulas and check which reference ran off the sheet. The next course shows how a dollar sign stops a reference from moving at all.
Drag to turn. Scroll or pinch to zoom.
- =B4*C4 in D4 is copied to D5. What formula is in D5?
- =A1 is copied two cells down and two cells to the right. What does it become?
- =A2+1 in B2 is copied to B1. What formula is in B1?
- =B2*C2 in D2 is copied one column right, to E2. What does it become?
- =A1+1 in B1 is copied into A1. What happens?
- The reference becomes #REF!
- It becomes =A1+1
- It becomes =B1+1
- Nothing is pasted
- What does Ctrl+D do in Google Sheets?
- Fill down
- Delete the row
- Duplicate the sheet
- Show formulas
- Which shortcut shows all formulas in Google Sheets?
- Ctrl+~
- Ctrl+F
- Ctrl+S
- Ctrl+P
- After filling =B2*C2 from D2 to D6, B5 is 4.25 and C5 is 2. What is in D5?
- What does a relative reference really store?
- A position relative to the formula's cell
- A fixed cell that never changes
- The value of the cell at the time of typing
- The name of the column
- =SUM(B2:B4) in B5 is copied to C5. What does it become?
- Ordinary references are relative: they shift when the formula is copied.
- Down n rows: row numbers + n. Right n columns: letters move n.
- Fill with the fill handle, or Ctrl+D (down) and Ctrl+R (right).
- A reference pushed off the sheet becomes #REF!.
Sources for this course (2)
- Microsoft Support, "Excel specifications and limits" (support.microsoft.com/en-us/office/excel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3: 1,048,576 rows by 16,384 columns, 15-digit precision, 255 arguments), "Calculation operators and precedence in Excel" (.../calculation-operators-and-precedence-in-excel-48be406d-4975-4d31-b2b8-7af9e0e2878a: operators, order negation % ^ * / + - & comparisons, =5+2*3 is 11, ="1"+"2" is 3, ="A"&TRUE is ATRUE, #### for too little space), "SUM function" (.../sum-function-043e1c7d-7726-4e80-8f32-07b23e057f89: up to 255 numbers, =A1+B1+C1 gives #VALUE! with text while SUM ignores text), "Switch between relative, absolute, and mixed references" (.../dfec08cd-ae65-4f56-839e-5f0d8d0baca9: =B4*C4 copied from D4 to D5 becomes =B5*C5), "Date systems in Excel" (.../e7fe7167-48a9-4b96-bb53-5612a800b487: July 5, 2011 is 40729 in the 1900 system and 39267 in the 1904 system, 1,462 days apart), "Remove or allow a circular reference" (.../8540bd0f-6e97-4483-bcf7-1b49cd50d123: warning, then 0 or the last value), VLOOKUP and IF pages (#N/A, #NAME? from missing quotes). Google Docs Editors Help: SUM (support.google.com/docs/answer/3093669: any number of arguments), DATE (answer/3092969: days counted from December 30, 1899), Keyboard shortcuts for Google Sheets (answer/181110: Ctrl+D fill down, Ctrl+R fill right, Ctrl+~ show all formulas, F4 absolute/relative), Files you can store in Google Drive (support.google.com/drive/answer/37603: up to 20 million cells per spreadsheet), ERROR.TYPE (answer/3238305: the error values). History: Smithsonian National Museum of American History, VisiCalc software and documentation, object nmah_1696121 (Bricklin and Frankston, Apple II, 1979)
- ACM Interactions, "The first killer app: a history of spreadsheets" (2013: Lotus 1-2-3, Excel for the Macintosh in 1985)
Checked: 2026-10-17