To keep a value constant in an Excel formula, you must use an Absolute Reference by adding dollar signs ($) before the column letter and row number of the cell you want to lock (e.g., $A$1). This prevents Excel from automatically changing the cell reference when you copy or drag the formula to other cells, ensuring your calculation always points to the same specific data point regardless of where the formula is moved.

What You'll Need

  • A computer with Microsoft Excel installed (any version) or access to Excel for the Web.
  • A dataset containing at least one constant value (such as a tax rate, exchange rate, or goal percentage) and a list of values to be calculated.
  • Basic familiarity with how to enter a simple formula using the equals sign (=).

Step-by-Step

  1. Identify your constant value: Locate the cell that contains the value you want to remain fixed. For example, if you have a sales tax rate of 7% located in cell B1, this is your constant.
  2. Start your formula: Click on the cell where you want the result to appear. Type the equals sign (=) to begin the formula.
  3. Select the variable cell: Click on the first cell that should change as you drag the formula down. For example, if your first product price is in cell A4, click A4.
  4. Insert the operator: Type the mathematical operator you need, such as the asterisk (*) for multiplication or the forward slash (/) for division.
  5. Select the constant cell: Click on the cell containing your constant value (e.g., cell B1). At this stage, the formula will look like =A4*B1. This is a "Relative Reference," meaning if you drag it down, it will change to =A5*B2, which is usually incorrect.
  6. Lock the reference: While your cursor is still blinking on the reference to the constant cell (B1) in the formula bar, press the F4 key on your keyboard. Excel will automatically insert dollar signs, changing the reference to $B$1.
  7. Complete the formula: Press Enter to finish the calculation. Your formula now reads =A4*$B$1.
  8. Apply to other cells: Hover your mouse over the bottom-right corner of the cell containing the formula until the cursor turns into a small black cross (the Fill Handle). Click and drag the handle down through the rest of your column.
  9. Verify the results: Click on any of the cells you just filled. Look at the formula bar; you will notice that while the first cell reference changes (A4 becomes A5, A6, etc.), the constant reference remains exactly $B$1.

Common Mistakes

One of the most frequent errors is forgetting to lock the cell before dragging the formula. If you drag a relative reference down a column, Excel shifts every reference in the formula by one row for every row you move. This often results in #VALUE! errors because Excel begins multiplying your numbers by empty cells located below your constant value.

Another common mistake is applying the dollar signs to the wrong part of the reference. Users sometimes type B$1 or $B1. While these are valid "Mixed References," they do not lock the cell entirely. B$1 locks the row but lets the column change; $B1 locks the column but lets the row change. For a truly constant value, both the letter and the number must have a dollar sign preceding them.

Some users attempt to manually type the value into the formula (e.g., =A4*0.07) instead of referencing a cell. While this keeps the value constant, it is a poor practice. If the tax rate changes to 8%, you would have to manually edit every single formula in your spreadsheet. By referencing a locked cell, you only need to change the value in one place to update the entire sheet.

Tips

The F4 key is the fastest way to toggle through reference types. If you press F4 repeatedly while selecting a cell in a formula, Excel cycles through four states: Absolute ($A$1), Mixed Row (A$1), Mixed Column ($A1), and back to Relative (A1). This is significantly faster than typing dollar signs manually.

For those working with very large spreadsheets, consider using Named Ranges as an alternative to absolute references. You can click on cell B1, go to the Name Box (the small field to the left of the formula bar), and type a name like "TaxRate." Now, instead of typing =$B$1, you can simply type =A4*TaxRate. Named ranges are automatically absolute, meaning they will never shift when copied, and they make your formulas much easier for other people to read and understand.

If you are using a laptop, your F4 key might be mapped to a system function (like brightness or volume). In this case, you may need to hold the Fn key while pressing F4 to trigger the absolute reference toggle.

Troubleshooting

If your formula is still returning incorrect results after adding dollar signs, first check for hidden characters or spaces in your constant value cell. If cell B1 contains "7% " (with a space), Excel may treat it as text rather than a number, leading to a #VALUE! error.

If you see a series of #REF! errors, it usually means the cell that was being referenced as a constant was deleted. If you delete a row or column that an absolute reference points to, the reference is broken. To fix this, undo the deletion or re-select the constant cell and press F4 again.

If the formula is not updating when you change the constant value, check your Calculation Options. Go to the Formulas tab, click Calculation Options, and ensure that Automatic is selected. If it is set to Manual, Excel will not recalculate the results until you press F9 or manually trigger a save.

Frequently Asked Questions

What is the difference between relative and absolute references?

A relative reference (A1) changes based on the position of the cell where the formula is copied. An absolute reference ($A$1) remains fixed to that specific cell no matter where the formula is moved or copied within the workbook.

Can I lock only the row or only the column?

Yes, these are called mixed references. Using A$1 locks the row, meaning the formula will always look at row 1 even if dragged down. Using $A1 locks the column, meaning it will always look at column A even if dragged to the right.

Does the F4 shortcut work in Google Sheets?

Yes, the F4 key functions similarly in Google Sheets to toggle between absolute and relative references while editing a formula.

Why does my formula show $A$1 instead of the actual value?

Excel shows the cell address (the reference) in the formula bar to tell you where the data is coming from. The actual calculated value is displayed in the cell on the spreadsheet. If you want to see the formula in all cells, press Ctrl + ` (the grave accent key).

Is there a limit to how many absolute references I can use?

There is no practical limit to how many absolute references you can use in a single formula or across a worksheet. You can lock as many different constant cells as your calculation requires.