Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Copy a Formula Down an Entire Column

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To copy a formula down an entire column, type the formula in the first cell, select that cell, then either drag the small square in its bottom-right corner (the fill handle) to the bottom of your data, or double-click that square to fill automatically to the end of the adjacent data. Pressing Ctrl+D (Windows) or Command+D (Mac) fills a selected range downward with the formula from the top cell. All three methods work in Excel, Google Sheets and LibreOffice Calc, and you need a working spreadsheet with your data already in place and a column beside it free for the results.

What You'll Need

  • A spreadsheet application: Microsoft Excel, Google Sheets, LibreOffice Calc, or a similar program. The steps below cover all three; small wording differences are noted.
  • Your data arranged in columns, ideally without completely blank rows inside the range you want to fill, since blank rows stop the double-click method.
  • One empty column next to your data to hold the formula results.
  • A formula that uses cell references (for example =B2*C2 or =SUM(B2:D2)) rather than fixed numbers, so copying it gives different results per row.

Step-by-Step

  1. Enter the formula in the first cell of the column. Click the first empty cell beside your first data row, type an equals sign, then your formula, for example =B2*C2. Press Enter to confirm. If the cell shows an error or an unexpected result, fix the formula before copying it; otherwise you will copy the same error down the whole column.
  2. Check relative and absolute references. Before copying, decide whether each reference should move with the row. A reference like B2 changes to B3, B4 and so on as you copy down. If part of the formula must stay pinned, add dollar signs, for example =$B$2*C2 to keep a single rate cell fixed while the row reference moves. Select the reference in the formula bar and press F4 (Windows) to cycle through the $ combinations; on a Mac, use Command+T in Excel.
  3. Select the first cell again. Click the cell containing your formula. A thick border with a small square in the bottom-right corner appears. That square is the fill handle.
  4. Copy down with the fill handle by dragging. Hover the pointer over the fill handle until the cursor becomes a thin black plus sign, then click and drag straight down to the last row you want filled. Release the mouse. The formula is copied into every cell you passed over, with references adjusted per row.
  5. Or copy down instantly by double-clicking the fill handle. Double-click the small square instead of dragging. The formula fills down to the last row where the neighbouring column has data, and stops there. This is the fastest option for long lists but requires a continuous adjacent column with no blank cells.
  6. Or use the keyboard shortcut. Type the formula in the top cell, then select the whole range you want filled (for example, click the top cell, hold Shift, and press the Down arrow repeatedly, or use Ctrl+Shift+Down to select to the end of the data). Press Ctrl+D on Windows or Command+D on Mac to fill down. In Google Sheets, Ctrl+D and Command+D both work.
  7. Verify a few results. Click a cell near the bottom of the filled range and read the formula bar. It should reference that row's cells, not the first row's. Compare two or three results by hand to confirm the maths is right.
  8. Remove the fill formatting if needed. When you drag the fill handle, the little Auto Fill Options box may appear beside the last cell. Use it to choose whether to copy the formula only, or to copy formatting and values as well. In Google Sheets, the equivalent option appears when you drag with the mouse.

Common Mistakes

  • Missing dollar signs on a fixed reference. Copying B2*D1 down changes D1 to D2, D3 and so on, so the results go wrong from the second row. Pin it as $D$1. You can also name the cell once and refer to the name in every row.
  • Double-clicking when there is a blank row. The double-click fill stops at the first gap in the adjacent column. Drag manually or use Ctrl+D instead.
  • Dragging the cell border instead of the fill handle. Grabbing the edge of the selection moves the formula rather than copying it. Watch for the plus-sign cursor before dragging.
  • Copying over existing data. Dragging past your last row overwrites whatever is below. Always check the bottom of the range before releasing the mouse.
  • Pasting a copied cell over the whole column and wiping formatting. A plain paste can carry the source cell's formatting and borders. Use Paste Special > Formulas, or the fill handle, if you only want the formula.
  • Filling a formula that refers to a merged cell or a filtered list. Hidden rows and merged cells behave unpredictably with fills; unhide or unmerge first if the results look strange.

Tips

  • For very long columns, use Ctrl+Shift+Down to select the range before pressing Ctrl+D rather than dragging; it is far quicker and less error-prone.
  • Keep your formula column directly beside your data so the double-click fill knows where to stop.
  • If you want to turn the results into fixed values, copy the filled range and use Paste Special > Values. This frees the formulas from the source data and stops results changing when the source changes.
  • Convert your data range into a table (Insert > Table in Excel, or Format > Convert to table in Google Sheets). New rows then inherit the formula automatically, so you no longer have to copy down at all.
  • In Google Sheets, you can also select the first cell and the whole range, then use Edit > Fill > Down from the menu.

Troubleshooting

If the double-click fill only goes one row: the adjacent column has a blank cell early on. Fill the gaps, or select the range manually and press Ctrl+D.

If every row shows the same result: your references are absolute when they should be relative. Remove the dollar signs from the row parts ($B2 becomes B2) so the reference moves down.

If you see #REF!, #VALUE! or #DIV/0! in the copied cells: the formula is pointing at empty, text or zero cells for that row. Check the first error cell, correct the formula, then copy down again.

If the fill handle does not appear at all: turn it back on. In Excel, go to File > Options > Advanced and confirm Enable fill handle and cell drag-and-drop is ticked. In LibreOffice Calc, check Tools > Options > Calc > General. In Google Sheets, make sure you are dragging from the small square in the corner of the selected cell, not from the middle.

If the fill copies formatting you did not want: undo with Ctrl+Z, then redo the fill and choose Fill Without Formatting from the Auto Fill Options box, or use Paste Special > Formulas.

If the results look correct but do not update: calculation may be set to manual. In Excel, go to Formulas > Calculation Options and set it to Automatic.

Frequently Asked Questions

Can I copy a formula down without dragging?

Yes. Select the top cell and the full range below it, then press Ctrl+D (Windows) or Command+D (Mac). You can also double-click the fill handle.

Why does my formula change when I copy it down?

That is normal. Relative references move one row per copied row. Use dollar signs (for example $A$1) on any part that should stay fixed.

Does this work the same in Google Sheets and Excel?

Yes, the fill handle, double-click and Ctrl+D or Command+D all work in both. Menu wording differs slightly between versions, devices and regions.

How do I copy a formula down to the last row of a very long sheet?

Click the top cell, press Ctrl+Shift+Down to select to the end of the data, then press Ctrl+D. Avoid dragging on long sheets.

Can I stop the formula from copying into empty rows?

Use the double-click method, which stops at the last adjacent data row, or wrap the formula so it returns a blank when its input cells are empty.