Google Sheets: How to Copy a Formula Down a Column
In this article
To copy a formula down in Google Sheets, the fastest method is to click the small blue square (the fill handle) in the bottom-right corner of the cell containing the formula and drag it down to your desired row. Alternatively, you can double-click that same blue square to automatically fill the formula down as far as there is data in the adjacent column. This process allows you to apply the same mathematical logic or data transformation to hundreds or thousands of rows without manually typing the formula into every single cell.
What You'll Need
- A Google account with access to Google Sheets.
- A spreadsheet containing at least one cell with a working formula.
- A dataset in the column immediately to the left or right of your formula cell (required for the double-click shortcut).
Step-by-Step
- Create Your Initial Formula: Click on the cell where you want the calculation to start (usually the first row of your data set). Type your formula, starting with an equals sign (=), such as
=B2*C2to multiply two cells, and press Enter. Ensure the formula is calculating correctly for that specific row before proceeding. - Select the Active Cell: Click once on the cell containing the formula you just created. You will see a blue border appear around the cell, indicating it is active.
- Locate the Fill Handle: Look at the bottom-right corner of the blue border. You will see a small, solid blue square. This is known as the fill handle.
- Method A: Click and Drag (Manual Control): Hover your mouse cursor over the blue fill handle. Your cursor will change from a pointer to a thin plus sign (+). Click and hold the left mouse button, then drag the cursor downward across the cells you want to fill. Release the mouse button when you reach the final row.
- Method B: Double-Click (Automatic Fill): Instead of dragging, simply double-click the blue fill handle. Google Sheets will automatically detect the length of the data in the column to the left and instantly copy the formula down to the exact row where the data ends. This is the most efficient method for very large datasets.
- Method C: Keyboard Shortcuts (Power User): Select the cell with the formula and all the empty cells below it that you wish to fill (you can do this by holding Shift and using the down arrow or clicking the first cell and Shift-clicking the last cell). Press
Ctrl + D(Windows/ChromeOS) orCmd + D(Mac). This "Fill Down" command duplicates the top cell's content into all selected cells below. - Verify the Results: Click on a few of the cells in the middle and bottom of your new range. Check the formula bar to ensure the cell references have updated correctly (e.g.,
=B2*C2should have become=B10*C10in row 10).
Common Mistakes
One of the most frequent errors when copying formulas is neglecting Absolute vs. Relative References. By default, Google Sheets uses relative references. This means if you copy =A1*B1 down one row, it becomes =A2*B2. While this is usually what you want, it becomes a problem if you are multiplying a whole column by a single constant value (like a tax rate in cell G1). If you copy =A1*G1 down, the next cell will be =A2*G2, but G2 is likely empty, resulting in a zero or an error. To fix this, you must use an absolute reference by adding dollar signs: =A1*$G$1. The dollar signs lock the reference to cell G1, so it stays the same regardless of where the formula is copied.
Another common mistake is dragging the formula too far. If you drag a formula past the end of your data, you may see a series of zeros or #VALUE! errors because the formula is trying to calculate empty cells. While these can be deleted, it is cleaner to use the double-click method or the IFERROR function to hide these results.
Users also occasionally mistake copy-pasting for filling. If you copy a cell (Ctrl+C) and paste it (Ctrl+V) into a range, the formulas will update relatively, which is correct. However, if you copy the text of the formula from the formula bar and paste that text into other cells, the cell references will not change, and every single row will point back to the original cells, leading to incorrect data across your entire sheet.
Tips
For those dealing with massive datasets (thousands of rows), dragging the mouse can be tedious and prone to slipping. In these cases, the ARRAYFORMULA is a superior alternative to copying down. Instead of copying a formula into every cell, you can write one single formula in the top cell that handles the entire column. For example, instead of =B2*C2 copied down, you would use =ARRAYFORMULA(B2:B100 * C2:C100). This automatically populates the entire range and ensures that if you add new rows, the calculation is applied instantly without needing to drag the fill handle again.
To keep your sheets looking professional, combine your copied formulas with the IF function to handle empty rows. If you use a formula like =IF(A2="", "", B2*C2), the cell will remain blank if there is no data in column A, rather than displaying a zero or an error. This makes your spreadsheet much easier to read and prevents the "clutter" of formulas extending into empty space.
If you find yourself copying the same complex formula across multiple different tabs or sheets, consider using Named Ranges. By naming a cell or range (Data > Named ranges), you can use a name like TaxRate in your formula instead of $G$1. This makes your formulas easier to read (e.g., =A2*TaxRate) and removes the need to worry about absolute reference dollar signs when copying down.
Troubleshooting
The formula isn't updating cell references: If you copy a formula down and every cell shows the exact same result, check if you accidentally used absolute references (dollar signs) on the columns or rows that should be changing. Remove the $ symbols from the references that need to shift as you move down the column.
The double-click fill handle isn't working: The double-click shortcut only works if there is continuous data in the column immediately to the left. If there is a completely empty column between your data and your formula, Google Sheets doesn't know where to stop. To fix this, either move your formula column next to your data or use the click-and-drag method.
You see #REF! errors after copying: A #REF! error usually means the formula is pointing to a cell that doesn't exist. This often happens if you copy a formula that references a cell "above" it, and then you paste that formula into the very first row of the sheet. Since there is no row 0, the reference breaks. Ensure your formula logic accounts for the starting position of the data.
The results are all zeros: This typically happens when the formula is copying correctly, but the cells it is referencing are empty or contain text that cannot be used in a mathematical calculation. Check your source data for hidden spaces or formatting issues (e.g., numbers stored as text) that might be preventing the calculation.
Frequently Asked Questions
Can I copy a formula across a row instead of down a column?
Yes. The process is identical. Select the cell, click the blue fill handle, and drag it to the right across the columns. The cell references will shift horizontally (e.g., =A1+B1 becomes =B1+C1).
Does copying a formula down change the original formula?
No. The original formula in the first cell remains unchanged. Copying creates new instances of that formula in the target cells, adjusted for their new relative positions.
How do I stop a formula from changing when I copy it?
Use absolute references. Place a dollar sign before the column letter and the row number (e.g., $A$1). This "locks" the cell so it never changes, regardless of where you copy the formula.
Is there a limit to how many cells I can fill down?
While there is no specific "fill limit," Google Sheets has a total cell limit per workbook. If you try to fill a formula down to row 10 million, you will hit the sheet's capacity limit and receive an error.
Can I copy formulas on the Google Sheets mobile app?
Yes, but the interface is different. Tap the cell, then tap and hold the blue dot on the corner of the selection box to drag it, or use the "Autofill" option found in the cell action menu after selecting the range.