Fix Excel IF Formula Cell References When Copying Down
Question details
Keep references to two cells on the Users sheet fixed while copying an IF formula 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.
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.
Use absolute Users sheet references in the IF formula
Add dollar signs to the Users references so they remain fixed, while leaving K58 relative.
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.
Select the formula cell and drag its fill handle down through the required rows.
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.

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. Open the workbook: Open WPS Spreadsheet and use Open to select the Excel workbook.
- 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. Fill down: Press Enter, select the formula cell, and drag its fill handle down to the required rows.
- 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.

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.




