Dollar signs in Excel are used to create absolute cell references. They "lock" a specific row or column in a formula so that when you copy or drag that formula to other cells, the reference to that specific cell remains constant instead of shifting relative to the new position.

What You'll Need

  • A computer with Microsoft Excel installed (or access to Excel for the Web).
  • A basic spreadsheet with some data to practice with.

Step-by-Step

  1. Understand the Default (Relative Reference): By default, Excel uses relative references. If you type =A1+B1 in cell C1 and drag it down to C2, Excel automatically changes the formula to =A2+B2. The reference "moves" relative to where the formula is placed.
  2. Lock both Column and Row (Absolute Reference): To keep a reference exactly on one cell regardless of where the formula is moved, place a dollar sign before both the column letter and the row number.
    Example: =$A$1.
    If you copy this formula anywhere else in the sheet, it will always point to cell A1.
  3. Lock only the Row (Mixed Reference): Place a dollar sign only before the row number.
    Example: =A$1.
    If you drag this formula across columns, the "A" will change to "B", "C", etc., but the row will always stay as row 1.
  4. Lock only the Column (Mixed Reference): Place a dollar sign only before the column letter.
    Example: =$A1.
    If you drag this formula down rows, the "1" will change to "2", "3", etc., but the column will always stay as column A.
  5. Use the F4 Shortcut: Instead of typing dollar signs manually, click on a cell reference inside the formula bar and press the F4 key on your keyboard.
    • Press F4 once: Changes A1 to $A$1 (Absolute).
    • Press F4 twice: Changes it to A$1 (Row locked).
    • Press F4 three times: Changes it to $A1 (Column locked).
    • Press F4 four times: Returns it to A1 (Relative).

Common Mistakes

  • Forgetting the Dollar Sign in Tax/Rate Tables: A common error is creating a formula to multiply a list of prices by a single tax rate cell (e.g., cell G1) without locking G1. When the formula is dragged down, Excel looks at G2, G3, and so on, resulting in zeros or errors.
  • Over-locking: Using $A$1 when you actually intended for the row to change. This prevents the formula from calculating correctly for subsequent rows of data.
  • Confusing $ with Currency Formatting: Remember that dollar signs inside a formula (like =$A$1) are functional tools for locking cells. Dollar signs that appear outside a formula in the cell display are simply currency formatting and have no effect on how the formula calculates.

Tips

  • Use Named Ranges: If you find yourself using $A$1 frequently for a specific value (like "SalesTax"), you can define a Name for that cell. Go to the Name Box (top left) and type "SalesTax". Now you can use =A2*SalesTax, and Excel treats it as an absolute reference automatically.
  • Check the Formula Bar: When dragging a formula and getting unexpected results, click the cell and look at the formula bar. Check if the dollar signs are in the correct positions for the direction you are dragging.
  • Consistent Layouts: Keep your "constant" values (like tax rates or dates) in a dedicated header row or a separate settings tab to make it easier to identify which cells need to be locked.

Troubleshooting

The formula is returning 0 or #VALUE! after I dragged it.
This usually happens because you used a relative reference instead of an absolute one. The formula has "drifted" into empty cells. Check your formula; if you are referencing a single constant cell, ensure it has both dollar signs (e.g., $B$1).

The F4 key isn't working.
On many laptops, the F-keys perform system functions (like volume or brightness) by default. Try pressing Fn + F4 to trigger the reference toggle.

I locked the cell, but the value still isn't updating.
Ensure that "Calculation Options" is set to Automatic. Go to the Formulas tab > Calculation Options > Automatic. If it is set to Manual, the formula won't update until you press F9.

Frequently Asked Questions

What is the difference between $A1 and A$1?

$A1 locks the column; if you drag the formula horizontally, it will always refer to column A. A$1 locks the row; if you drag the formula vertically, it will always refer to row 1.

Do I have to type the dollar signs manually?

No, you can use the F4 shortcut key while your cursor is on the cell reference in the formula bar to cycle through the different locking options.

Does this work in Google Sheets too?

Yes, Google Sheets uses the exact same logic and syntax (the dollar sign) for absolute and mixed references as Microsoft Excel.

Can I lock a whole range of cells?

Yes. If you are using a function like SUM or VLOOKUP, you can lock the entire range by putting dollar signs on both the start and end cells (e.g., SUM($A$1:$A$10)). This ensures the range doesn't shift when the formula is copied.

Why is my formula not changing when I drag it?

If the formula is not changing at all, you likely have absolute references (dollar signs) on every part of the formula. Remove the dollar signs from the cells that you want to shift as you drag.