Formula Errors

Excel IF Formula Fills Only One Cell: How to Copy It Down

John WilsonJohn Wilson Dec 2, 2026 868 views

Question details

The user wants to fill an IF formula down a column without shifting references that should remain fixed.

How to Fill an Excel IF Formula Down a Column
Product
Microsoft Excel
Device & OS
not provided
Scenario
An IF formula needs to evaluate values in multiple rows while referring to the correct cells or ranges.
Observed behavior
The formula appears only in the first cell instead of automatically filling the column.
Before you start

Identify the first and last rows that need the formula. Check which references should change by row and which cells or ranges should remain fixed.

Solution 1Recommended

Copy the IF Formula Down and Lock Fixed References

Use the fill handle to apply the formula to each row, and add dollar signs to references that must stay fixed.

A formula such as =IF(D2>30,"Old","Young") returns one result, so it does not fill the rest of the column automatically. Newer Excel versions support dynamic arrays, but a single-cell IF formula does not spill simply because the feature is available.

1
Enter the formula

Select the first result cell, such as E2, enter =IF(D2>30,"Old","Young"), and press Enter.

2
Lock fixed references

If the formula uses a fixed cell or range, edit it in the formula bar and add dollar signs. For example, $A$2:$A$5 locks both columns and rows, while $A2:$A5 locks only the columns.

3
Fill the column

Select E2 and drag the fill handle at the cell's bottom-right corner down to the last row that needs a result.

4
Check the copied formulas

Select a cell farther down the column and inspect the formula bar. The row reference should change, such as D2 becoming D3, while fully locked references remain unchanged.

Copy the IF Formula Down and Lock Fixed References
Filling a mixed reference: When copied down, $A2:$A5 keeps column A fixed but changes the row numbers. Use $A$2:$A$5 if the entire range must stay fixed.
Work with formulas in WPS Spreadsheets

Fill IF Formulas Down in WPS Spreadsheets

Use WPS Spreadsheets to enter an IF formula, lock fixed references, and copy the formula down the rows you need.

  1. 1. Open the spreadsheet: Open WPS Office, choose Spreadsheets, and open your workbook.
  2. 2. Enter the IF formula: Select the first result cell, enter a formula such as =IF(D2>30,"Old","Young"), and press Enter.
  3. 3. Lock any fixed references: Edit the formula in the formula bar and add dollar signs where needed, such as $A$2 for a cell that should not move.
  4. 4. Copy the formula down: Select the formula cell and drag its bottom-right fill handle down to the last required row. Click a copied cell to check its references in the formula bar.
Fill an IF formula down a column with the fill handleUse dollar signs to keep cell references fixedOpen and save Microsoft Excel XLSX filesWork in a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't my IF formula automatically fill the whole column?

A formula such as =IF(D2>30,"Old","Young") evaluates one cell and returns one result. Select the formula cell and drag its fill handle down to apply it to other rows.

How do I keep a reference from changing when I fill down?

Edit the formula in the formula bar and add dollar signs to the reference. For example, $A$2 keeps both the column and row fixed when copied.

What is the difference between $A2 and $A$2?

$A2 locks column A but allows the row number to change when copied. $A$2 locks both the column and row.

Can a dynamic array fill an IF formula automatically?

In Excel versions that support dynamic arrays, a formula that returns multiple values can spill into neighboring cells. A single-cell formula such as =IF(D2>30,"Old","Young") still returns one result and needs to be copied down.