Formula Errors

Fix Excel IF Formula Cell References When Copying Down

Amos GikundaAmos Gikunda Dec 2, 2026 869 views

Question details

Keep references to two cells on the Users sheet fixed while copying an IF formula down.

Fix Excel IF Formula Cell References When Copying Down
Product
Microsoft Excel
Device & OS
not provided
Scenario
An IF formula checks a value in column K and returns a value from the Users sheet.
Observed behavior
When the formula is copied down, the Users sheet references change, but they need to remain fixed while the column K reference advances by row.
Before you start

Check that the workbook has a sheet named Users and that cells B5 and B8 contain the values you want to return. The example assumes the formula starts on row 58.

Solution 1Recommended

Use absolute Users sheet references in the IF formula

Add dollar signs to the Users references so they remain fixed, while leaving K58 relative.

1
Edit the formula

Select the formula cell on row 58 and enter this formula in the formula bar: =IF(K58="Settlement Run",Users!$B$5,IF(K58="Bpay Fees",Users!$B$8," ")). Press Enter.

2
Copy the formula down

Select the formula cell and drag its fill handle down through the required rows.

3
Check the next row

Select the copied formula on row 59 and check the formula bar. Its K references should be K59, while Users!$B$5 and Users!$B$8 remain unchanged.

Use absolute Users sheet references in the IF formula
Unmatched values: The final " " returns a single space when neither condition matches. Use "" instead if you want to return an empty string.
WPS Spreadsheet

Keep IF Formula References Fixed in WPS Spreadsheet

Use absolute references in WPS Spreadsheet to keep the Users sheet cells fixed while copying an IF formula down.

  1. 1. Open the workbook: Open WPS Spreadsheet and use Open to select the Excel workbook.
  2. 2. Enter the formula: Select the formula cell on row 58 and enter =IF(K58="Settlement Run",Users!$B$5,IF(K58="Bpay Fees",Users!$B$8," ")) in the formula bar.
  3. 3. Fill down: Press Enter, select the formula cell, and drag its fill handle down to the required rows.
  4. 4. Verify the references: Select a copied cell and check the formula bar to confirm that the K row changed and the Users references stayed fixed.
Keep lookup cells fixed while row references changeOpen and edit Microsoft Excel XLSX and XLS filesCopy formulas down with the fill handleUse familiar spreadsheet formulas and controls
microsoft office alternative - wps office

Frequently Asked Questions

Why do Users!B5 and Users!B8 change when I copy the formula?

They are relative references, so Excel adjusts them when you copy the formula. Change them to Users!$B$5 and Users!$B$8 to fix both the column and row.

How do I make K58 change to K59 on the next row?

Leave the reference as K58 without dollar signs, then drag the formula cell's fill handle down one row.

What does the formula return if column K matches neither condition?

The example returns a single space from its final " ". Replace it with "" in the formula bar to return an empty string instead.

Will the same formula work in WPS Spreadsheet?

Yes. Open the workbook in WPS Spreadsheet, enter the formula in the formula bar, and use the fill handle to copy it down.