How to Use Autofill to Copy Formulas in Excel
In this article
Using autofill to copy formulas is the fastest way to apply a calculation across multiple cells in Microsoft Excel without manually typing or pasting each one. This feature automatically adjusts cell references relative to their new position, ensuring that your calculations remain accurate as they move down rows or across columns. To use it effectively, you need an open spreadsheet with at least one formula entered in a cell and adjacent empty cells where you want the results to appear.
What You'll Need
- A computer with Microsoft Excel installed (desktop version recommended for full functionality).
- An open workbook containing data and at least one active formula.
- Basic familiarity with selecting cells using the mouse or keyboard.
Step-by-Step
- Select the source cell: Click on the cell that contains the formula you wish to replicate. Ensure this cell displays a result rather than an error, as copying an error will propagate that error to other cells.
- Locate the Fill Handle: Move your cursor to the bottom-right corner of the selected cell. The cursor will change from a thick white plus sign to a thin black plus sign. This small square is known as the Fill Handle.
- Drag to fill vertically or horizontally: Click and hold the left mouse button while dragging the Fill Handle down over the cells you want to populate, or across to the right if copying to adjacent columns. Release the mouse button when you have covered the desired range.
- Verify the adjusted references: Click on one of the newly filled cells and check the formula bar. Excel should display the same logic but with updated row or column numbers (e.g., changing
=A1+B1to=A2+B2). If the references did not change, proceed to the troubleshooting section. - Use double-click for large datasets: If you have a long list of data next to your formula column, hover over the Fill Handle until the cursor turns into a thin black cross, then double-click. Excel will automatically fill the formula down to the last contiguous row of data in the adjacent column.
- Apply specific fill options if needed: After dragging, look for the "AutoFill Options" button that appears near the bottom-right of the filled range. Click it to choose between "Copy Cells," "Fill Without Formatting," or "Fill Series" depending on whether you want to preserve formatting or adjust numerical sequences.
Common Mistakes
One frequent error is forgetting to lock absolute references. If your formula relies on a constant value located in a single cell (like a tax rate), dragging the formula will shift that reference incorrectly unless you use dollar signs (e.g., $B$1) to make it absolute. Another common mistake is attempting to autofill over existing data unintentionally; always ensure the target cells are empty or ready to be overwritten. Users also often miss the distinction between "Copy Cells" and "Fill Series," which can lead to unexpected number patterns instead of identical formulas.
Tips
To speed up workflow, learn the keyboard shortcut Ctrl+D, which fills down the contents of the topmost cell in a selected range. For filling to the right, use Ctrl+R. When working with complex tables, consider converting your data range into an official Excel Table (using Ctrl+T). In Tables, formulas automatically expand to new rows added at the bottom, eliminating the need for manual autofilling entirely. Additionally, if you only want to copy the formula without changing the cell references, hold down the Ctrl key while dragging the Fill Handle.
Troubleshooting
If the formula does not appear to copy correctly, first check if the source cell actually contains a formula or just text. Select the cell and press F2 followed by Enter to force Excel to recalculate and recognize the entry as a formula. If the references are not adjusting as expected, verify that the cell format is set to General or Number rather than Text. Sometimes, accidental application of absolute references ($ symbols) prevents relative adjustment; edit the formula to remove unnecessary dollar signs. If the double-click method fails to fill all rows, there may be blank cells interrupting the data sequence in the adjacent column; select the entire range manually and drag instead.
Frequently Asked Questions
Does autofill change cell references?
Yes, by default, autofill uses relative referencing, meaning it adjusts row and column numbers based on the distance from the original cell. You can prevent this by adding dollar signs to create absolute references.
Can I use autofill in Google Sheets?
Yes, the process is nearly identical. Hover over the bottom-right corner of the cell until the cursor changes to a plus sign, then drag or double-click to fill.
Why did my dates turn into numbers?
This usually happens if the cell format is set to General or Number. Select the affected cells and change the format to Date via the Home tab ribbon to restore proper display.
How do I stop autofill from copying formatting?
After dragging the fill handle, click the AutoFill Options icon that appears and select "Fill Without Formatting." This copies only the values and formulas, leaving the destination cells' existing styles intact.
Is there a limit to how many cells I can autofill?
While Excel supports over a million rows, performance may degrade with extremely large ranges. It is generally more efficient to use structured Tables or paste-special methods for massive datasets.