Formula Errors

How to Keep a Cell Reference Fixed While Copying an Excel Formula

Maira MehtabMaira Mehtab Nov 11, 2026 869 views

Question details

The user needs to lock a specific cell reference in a formula so it remains completely unchanged when copied or dragged down to other rows or columns.

How to Keep a Cell Reference Fixed While Copying an Excel Formula
Product
Excel
Device & OS
not provided
Scenario
Creating a formula that references a constant variable (such as a tax rate or fixed price) and copying it across a dataset without the constant cell address shifting.
Observed behavior
The user wants to prevent the default relative reference behavior, ensuring that one specific cell address stays fixed while the other cell addresses in the formula adjust automatically.
Before you start

Identify which specific cell contains the constant value that needs to be locked, and determine if you need to copy the formula vertically down rows or horizontally across columns.

Solution 1Recommended

Use an Absolute Cell Reference with Dollar Signs ($)

By adding dollar signs to both the column letter and row number, you lock the cell reference completely so it will never change when copied.

In Excel, cell references are relative by default. This means they automatically adjust when you copy them to a new location. To stop this from happening, you must convert the relative reference into an absolute reference.

1
Enter your initial formula

Select the cell where you want the result to appear and type your formula, including the cell you want to keep fixed (for example, =A1*B2, where A1 is the constant).

2
Apply the absolute reference shortcut

Click on 'A1' within the formula bar and press the F4 key on your keyboard. This will automatically add dollar signs, turning it into =$A$1.

3
Confirm the formula

Press Enter to apply the formula. The formula will now look like =$A$1*B2.

4
Copy the formula down

Click the small square at the bottom-right corner of the formula cell and drag it down the column. The relative reference (B2) will change to B3, B4, etc., but the absolute reference ($A$1) will remain exactly the same.

Use an Absolute Cell Reference with Dollar Signs ($)
Keyboard Shortcut Tip: Pressing F4 repeatedly while your cursor is on a cell reference in the formula bar will cycle through all absolute and mixed reference options (e.g., $A$1, A$1, $A1, A1).
Efficient Spreadsheet Management

Seamlessly Lock Cell References in WPS Spreadsheet

WPS Spreadsheet fully supports absolute, relative, and mixed cell references exactly like Microsoft Excel. You can quickly use the F4 shortcut to lock your cells and ensure your data calculations are perfectly accurate without purchasing expensive software.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the document containing your dataset.
  2. 2. Type the formula: Select the target cell, type the equals sign, and build your formula.
  3. 3. Lock the reference: Highlight the cell reference you wish to keep fixed and press F4 to convert it to an absolute reference with dollar signs.
  4. 4. Apply changes: Press Enter, then click and drag the Fill Handle to instantly copy the formula with the locked cell across all needed rows.
100% compatible with Microsoft Excel formulas and .xlsx formats.Supports the F4 keyboard shortcut for instantly toggling absolute references.Free to download and provides a familiar, intuitive spreadsheet interface.Includes robust tools for complex data calculation and analysis.
microsoft office alternative - wps office

Frequently Asked Questions

Why is the F4 key not locking the cell reference on my laptop?

On many modern laptops, the function keys (F1-F12) share functionality with media or system controls like volume and screen brightness. You may need to press and hold the 'Fn' key while pressing 'F4' (Fn + F4) to trigger the absolute reference shortcut.

What is the difference between $A$1, A$1, and $A1 in Excel?

$A$1 is an absolute reference that completely locks both column A and row 1. A$1 is a mixed reference that locks only row 1, allowing the column letter to change if dragged horizontally. $A1 is a mixed reference locking only column A, allowing the row number to change if dragged vertically.

Can I lock multiple cell references at once in a formula?

Yes. If you have a formula with multiple relative references that you want to convert to absolute references, you can highlight the entire formula (or the specific portion containing the references) in the formula bar and press F4. This will add dollar signs to all selected cell addresses simultaneously.

Does locking a cell reference work the same way across different spreadsheet software?

Yes, the standard of using a dollar sign ($) for absolute and mixed cell references is universally supported across major spreadsheet tools, including Microsoft Excel, WPS Spreadsheet, and Google Sheets.