How to Keep a Cell Reference Fixed While Copying an Excel Formula
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.

- 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.
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.
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.
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).
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.
Press Enter to apply the formula. The formula will now look like =$A$1*B2.
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 Mixed References to Lock Only Rows or Columns
If you are working with a complex data table and only need to lock the row direction or the column direction, use a mixed cell reference.
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. Open your workbook: Launch WPS Spreadsheet and open the document containing your dataset.
- 2. Type the formula: Select the target cell, type the equals sign, and build your formula.
- 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. Apply changes: Press Enter, then click and drag the Fill Handle to instantly copy the formula with the locked cell across all needed rows.

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.




