Formula Errors

How to Drag Formulas in Excel While Keeping Cell References Fixed

Steve KSteve K Dec 2, 2026 868 views

Question details

Copy a formula down while allowing references on the current sheet to change and keeping selected references on another sheet fixed.

How to Drag Formulas in Excel While Keeping Cell References Fixed
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet formula uses local row values and constants stored on another sheet.
Observed behavior
When the formula is copied down, local references should move to the next row while references to the constants remain unchanged.
Before you start

Identify the cells that should change as the formula is copied and the cells on the other sheet that should remain fixed. Confirm that the referenced sheet name and cell addresses are correct.

Solution 1Recommended

Use Absolute References for the Other-Sheet Cells

Add dollar signs to the row and column of each reference that must stay fixed when you drag the formula.

1
Edit the formula

Select the cell containing the formula and click the formula bar. Leave local references such as C4 and D4 without dollar signs.

2
Fix the constant references

Add dollar signs before the column and row of each constant reference. For example, enter =SUM(C4*DataConstants!$C$5,D4*DataConstants!$C$6), then press Enter.

3
Fill the formula down

Select the formula cell and drag the fill handle at its lower-right corner down the desired rows.

4
Check a copied formula

Select a cell below the original and inspect the formula bar. C4 and D4 should have changed to the corresponding row, while DataConstants!$C$5 and DataConstants!$C$6 remain fixed.

Use Absolute References for the Other-Sheet Cells
Sheet names with spaces: Enclose a sheet name containing spaces in single quotes, as in 'Data Constants'!$C$5.
Work with formulas in WPS Spreadsheets

Copy Formulas With Fixed References in WPS Spreadsheets

Use absolute references in WPS Spreadsheets to keep constant cells fixed while filling formulas down a worksheet.

  1. 1. Open the workbook: Open WPS Spreadsheets and use File > Open to select your workbook.
  2. 2. Enter the formula: Select the starting cell and enter a formula such as =SUM(C4*DataConstants!$C$5,D4*DataConstants!$C$6).
  3. 3. Fill down: Press Enter, select the formula cell, and drag its fill handle down to the remaining rows.
  4. 4. Verify the references: Select a copied cell and check the formula bar to confirm that the local row references changed and the constant references stayed fixed.
Keep other-sheet constants fixed with dollar signsFill formulas down using the fill handleOpen and save Microsoft Excel XLSX filesWork in a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

What do the dollar signs in $C$5 mean?

The dollar sign before C fixes the column, and the dollar sign before 5 fixes the row. Both stay unchanged when you copy the formula.

Can I fix only the row or only the column?

Yes. Use C$5 to fix row 5 while allowing the column to change, or $C5 to fix column C while allowing the row to change.

Why does a reference to another sheet change when I drag a formula?

The sheet name alone does not make a cell address absolute. Change a reference such as DataConstants!C5 to DataConstants!$C$5 to keep its column and row fixed.

How do I reference a sheet whose name contains spaces?

Put the sheet name in single quotes before the exclamation mark, for example, 'Data Constants'!$C$5.