Copy a Formula Down a Column in Google Sheets
In this article
- Why Copying Formulas Is Essential
- Method 1: Drag the Fill Handle
- Method 2: Double-Click the Fill Handle
- Method 3: Keyboard Shortcuts and Menu Options
- Understanding Relative vs. Absolute References
- Common Problems and How to Fix Them
- Alternatives: Array Formulas and Fill Down Menu
- Frequently Asked Questions
To copy a formula down a column in Google Sheets, select the cell with the formula, then drag the small blue square (fill handle) in the bottom-right corner of that cell down to the last row you need. Alternatively, double-click the fill handle to auto-fill the entire column, or use the keyboard shortcut Ctrl+Enter (Windows/ChromeOS) or Cmd+Enter (Mac) after selecting the range. This article explains each method in detail, how to control cell references, and how to fix common issues.
Why Copying Formulas Is Essential
Spreadsheets become powerful when you apply the same calculation to many rows. Instead of retyping a formula like =A2*B2 for every row, you copy it down so each row calculates its own result. Google Sheets automatically adjusts relative references (like A2 and B2) to match each row, so the formula in row 3 becomes =A3*B3, row 4 becomes =A4*B4, and so on. This saves time, reduces errors, and keeps your data consistent.
Copying formulas is fundamental for tasks like summing purchases, calculating percentages, converting units, or applying any repeated calculation across a dataset. It works the same whether you have 10 rows or 10,000 rows.
Method 1: Drag the Fill Handle
The fill handle is the small square in the bottom-right corner of a selected cell. Here’s how to use it:
- Click the cell containing the formula you want to copy.
- Hover your cursor over the fill handle until it changes to a crosshair (a thin plus sign).
- Click and hold the left mouse button, then drag down to the last row you want to fill.
- Release the mouse button. The formula is copied to every row you dragged over.
This method gives you full control over the exact range. If you drag too far, you can simply drag back up to remove the extra cells. It works for columns and rows (dragging right or left), and also for filling a block of cells in both directions at once.
Method 2: Double-Click the Fill Handle
For a long column, dragging can be tedious. Double-clicking the fill handle is much faster:
- Select the cell with your formula.
- Double-click the fill handle (the small square).
- Google Sheets automatically fills the formula down the column until it reaches the last row of adjacent data in the column to the left (or right, if the left is empty).
This works best when you have a contiguous block of data in a neighboring column. For example, if you have values in A2:A100 and your formula is in B2, double-clicking the fill handle in B2 will fill B2:B100. If there are gaps in the adjacent column, the fill stops at the first gap. If you have blank rows in your data, this method may stop prematurely.
Method 3: Keyboard Shortcuts and Menu Options
You can also copy formulas using the standard copy-paste shortcuts, but with a twist:
- Copy and paste: Select the cell with the formula, press Ctrl+C (Cmd+C on Mac), then select the entire range where you want the formula (click the first cell, then Shift+click the last cell, or use Ctrl+Shift+Down arrow to select the column), and press Ctrl+V (Cmd+V). This pastes the formula with relative references adjusted to each row.
- Ctrl+Enter (Cmd+Enter on Mac): Type the formula in the first cell, then select the whole range (including the first cell) before pressing Ctrl+Enter. This fills the formula into all selected cells at once. This is especially useful when you want to enter the same formula into a non-contiguous selection (hold Ctrl while clicking cells).
- Menu route: After copying a cell (Ctrl+C), right-click the target range and choose “Paste special” → “Paste formula only” to paste just the formula, not any formatting.
Understanding Relative vs. Absolute References
When you copy a formula, Google Sheets decides which cell references to change based on whether they are relative or absolute. A relative reference (like A2) changes when the formula is copied. An absolute reference (like $A$2) stays fixed. A mixed reference fixes only one part, like $A2 (column fixed, row changes) or A$2 (row fixed, column changes).
For example, if you want to multiply each value in column A by a constant in cell B1, you would write =A2*$B$1 in cell C2. When you copy this down, the A2 part changes to A3, A4, etc., but $B$1 always points to B1. Without the dollar signs, copying the formula would change B1 to B2, B3, etc., which is usually not what you want. Use the F4 key (or Fn+F4 on some laptops) to cycle through reference types while editing a formula.
Common Problems and How to Fix Them
Sometimes copying formulas doesn’t work as expected. Here are the most frequent issues and their solutions:
- Fill handle not showing: If you don’t see the small square, go to File → Settings → Calculation and ensure “Enable iterative calculation” is off (it doesn’t affect the handle). More likely, the cell is not selected – click on it first. The handle appears only when the cell is selected.
- Formula copies but shows the same result: This happens if you used absolute references everywhere (e.g.,
=$A$2*$B$2). Check your formula and remove dollar signs where you want the reference to change. - Double-click fill stops too early: The auto-fill stops at the first blank cell in the adjacent column. If your data has blank rows, either fill those blanks first or use the drag method instead.
- Formula copies but with wrong references: This can happen if you copy a formula from a different sheet or if you accidentally used a mixed reference. Review the formula in the first few copied cells to see how it changed.
- ArrayFormula not updating: If you are using
=ARRAYFORMULA, you don’t need to copy it down at all – it automatically fills the entire column. If you copy an array formula, you may get a “Result was not automatically expanded” error. Delete the copied cells and use the array formula only in the top cell.
Alternatives: Array Formulas and Fill Down Menu
While copying formulas is straightforward, there are alternatives for special cases:
- Array formulas: Instead of copying, you can write a single formula in the top cell that returns results for the entire column. For example,
=ARRAYFORMULA(A2:A100*B2:B100)in cell C2 fills C2:C100 automatically. This is more efficient for very large datasets and ensures the formula is always consistent. However, array formulas can be harder to debug and may slow down your sheet if used excessively. - Fill Down menu: After selecting the range (including the formula cell), go to Edit → Fill → Down (or use Ctrl+D). This does the same as dragging but is keyboard-friendly.
- Using a query or filter: For complex transformations, you might use
=QUERYor=FILTERto generate results without copying formulas. These are advanced but powerful.
Frequently Asked Questions
How do I copy a formula down without changing the cell reference?
Use absolute references by adding dollar signs, e.g., $A$2. You can also copy the formula and paste it with “Paste special” → “Paste formula only” – but that still changes relative references. To keep a reference exactly the same, you must use $.
Why is my double-click fill not working?
Double-click fill stops at the first blank cell in the adjacent column. If your data has blank rows, fill those blanks first or use the drag method. Also, ensure the adjacent column has data – if it’s empty, double-click won’t do anything.
Can I copy a formula down an entire column without dragging?
Yes. Select the cell with the formula, then press Ctrl+Shift+Down (Cmd+Shift+Down on Mac) to select the column down to the last data cell, then press Ctrl+D (Cmd+D) to fill down. Or use the double-click method if your data is contiguous.
What is the difference between dragging and double-clicking the fill handle?
Dragging lets you choose the exact range, while double-clicking automatically fills down to the last row of adjacent data. Dragging is more reliable when you have blank rows; double-click is faster for long, clean columns.
How do I copy a formula down but keep the row number constant?
Use a mixed reference: A$2 keeps row 2 fixed while the column can change if you copy horizontally. If you copy down, the row reference stays 2. Use $A2 to keep the column fixed while the row changes.
Why does my copied formula show #REF! or #VALUE! errors?
#REF! usually means the formula references a cell that was deleted or moved. #VALUE! often indicates a type mismatch, like multiplying text. Check the first few copied cells to see if the references shifted incorrectly, and verify your data types.