Excel Formula Auto Fill: How to Copy Formulas Quickly
In this article
To auto fill a formula in Excel, select the cell containing your formula, hover your mouse over the small green square in the bottom-right corner (the Fill Handle) until the cursor becomes a thin black cross, and then click and drag it down the column or double-click the square to fill automatically to the bottom of your data range. This process allows you to apply a single calculation to hundreds or thousands of rows without manually typing the formula into every individual cell.
What You'll Need
- A computer with Microsoft Excel installed (works on Windows and macOS).
- A dataset with at least two columns of data to make the calculations meaningful.
- A working formula already entered into the first cell of your target range.
Step-by-Step
- Enter Your Initial Formula: Start by clicking on the cell where you want your first result to appear. Type your formula (for example,
=A2*B2to multiply two cells) and press Enter. Ensure the formula is calculating correctly for that specific row before proceeding. - Select the Source Cell: Click once on the cell containing the formula you just created. This will highlight the cell with a green border, making it the "active cell."
- Locate the Fill Handle: Look at the bottom-right corner of the active cell. You will see a tiny green square. This is known as the Fill Handle.
- Activate the Fill Cursor: Hover your mouse pointer directly over that small green square. Your standard white cross cursor will change into a thin, black plus sign (+). This indicates that Excel is ready to auto fill.
- Choose Your Fill Method:
- The Drag Method: Click and hold the left mouse button on the Fill Handle, then drag the cursor down the column to the last row of your data. Release the mouse button to apply the formula to all selected cells.
- The Double-Click Method: Instead of dragging, simply double-click the Fill Handle. Excel will automatically detect how many rows of data are in the adjacent column to the left and fill the formula down to the exact point where that data ends. This is the fastest method for large datasets.
- The Right-Click Drag: Click and hold the Fill Handle using the right mouse button instead of the left. Drag down to your desired range and release. A context menu will appear, allowing you to choose specifically between "Fill Series," "Fill Formatting Only," or "Fill Without Formatting."
- Verify the Results: Scroll through a few random rows in your column to ensure the formula adjusted correctly. For example, if your first formula was
=A2*B2, the next row should automatically be=A3*B3.
Common Mistakes
One of the most frequent errors when using auto fill is ignoring Absolute vs. Relative References. By default, Excel uses relative references. This means if you drag =A2*B2 down, it becomes =A3*B3. However, if you are multiplying a whole column by a single tax rate located in cell G1, dragging =A2*G1 will result in =A3*G2, =A4*G3, and so on. Since G2 and G3 are likely empty, your results will be zero or errors. To fix this, you must use an absolute reference by adding dollar signs: =A2*$G$1. This "locks" the reference to cell G1 regardless of where you fill the formula.
Another common mistake is double-clicking the fill handle when there are gaps in the adjacent data. If column A has data in rows 2 through 10, but row 11 is blank, double-clicking the fill handle in column B will stop at row 10. It will not jump over the gap to fill row 12 and beyond. In these cases, you must use the manual drag method to ensure the formula reaches the bottom of your actual list.
Users also frequently overwrite existing data by accident. When you drag the fill handle over cells that already contain values, Excel will replace those values with the formula results without warning. Always ensure the target column is empty or that you intend to replace the existing content before dragging.
Tips
For extremely large datasets (tens of thousands of rows), dragging the mouse can be tedious and prone to slipping. Instead, use the Keyboard Shortcut Method. Select the cell with the formula, then hold Shift and use the Page Down key or Ctrl+Shift+Down Arrow to highlight the entire range you want to fill. Once the range is highlighted, press Ctrl + D (Fill Down). This instantly copies the top cell's formula into all selected cells below it.
If you want to fill a formula horizontally across a row instead of down a column, the process is identical. Hover over the Fill Handle and drag to the right. Alternatively, use the keyboard shortcut Ctrl + R (Fill Right) after selecting the source cell and the target cells to the right.
To maintain the visual integrity of your sheet, use the "Fill Without Formatting" option from the right-click drag menu. This is helpful when your source cell has a specific border or background color that you do not want to be copied into every single row of your spreadsheet, as standard auto fill copies both the formula and the cell's style.
Troubleshooting
The formula is copied, but the result is the same number in every cell: This happens when Excel is set to "Manual Calculation" mode instead of "Automatic." To fix this, go to the Formulas tab in the top ribbon, click Calculation Options, and select Automatic. If you prefer to stay in manual mode, you can force the sheet to update by pressing the F9 key.
The Fill Handle (green square) is missing: This means the feature has been disabled in your Excel settings. To enable it, go to File > Options > Advanced. Under the "Editing options" section, make sure the checkbox for "Enable fill handle and cell drag-and-drop" is checked. Click OK and the square should reappear.
The double-click method isn't working: Ensure there is data in the column immediately to the left of your formula. If the column to the left is completely empty, Excel has no way to determine where the "end" of your data range is, and the double-click action will do nothing. You will need to drag the handle manually in this scenario.
I see #REF! or #VALUE! errors after filling: This usually indicates that the relative reference has shifted into an empty cell or a cell containing text that cannot be calculated. Check the formula in the first cell that shows the error. If the cell references (like A50) are pointing to empty space, you likely need to use absolute references ($) to lock a specific cell.
Frequently Asked Questions
Can I auto fill formulas in Excel for Web?
Yes, the process is identical in the web version of Excel. You can use the Fill Handle to drag formulas down or across just as you would in the desktop application.
Does auto fill work for complex formulas like VLOOKUP?
Yes, it works for any formula. However, with VLOOKUP, you almost always need to lock the table array (the range being searched) using absolute references (e.g., $A$2:$B$100) so the search area doesn't shift as you fill down.
How do I stop auto fill from changing the numbers in a sequence?
If Excel thinks you are creating a series (like 1, 2, 3) instead of copying a formula, a small "Auto Fill Options" icon appears at the bottom-right of your filled range. Click that icon and select "Copy Cells" instead of "Fill Series."
Is there a limit to how many rows I can auto fill?
The limit is the maximum number of rows allowed in an Excel worksheet (1,048,576 rows). However, filling millions of complex formulas can slow down your computer's performance.
Can I auto fill a formula into a filtered list?
Auto filling into a filtered list can be tricky because Excel may fill the hidden rows as well. It is generally safer to clear the filter, fill the formula, and then re-apply the filter, or use a Table (Ctrl+T) which handles calculated columns automatically.