How to Keep a Cell Constant in a Google Sheets Formula

Master absolute and mixed references in Google Sheets to lock cells in formulas. This step-by-step guide includes practical examples, tips, and common mistakes to avoid when google sheets keep cell constant in formula.

How To Sheets
How To Sheets Team
·5 min read
Quick AnswerDefinition

You keep a cell constant in a Google Sheets formula by using absolute references. Put a dollar sign before the row, column, or both (e.g., $A$1) to lock that part of the reference when you copy the formula. Mixed references like $A1 or A$1 lock only the column or the row, respectively. Understanding when to use each form helps keep calculations consistent across rows and columns.

What keeping a cell constant in a formula means

If you're curious about google sheets keep cell constant in formula, absolute references are the tool you need. In Google Sheets, a reference can point to a single cell or an entire range. By placing a $ in front of the column letter and/or row number, you fix that part of the reference. For example, $A$1 locks both column A and row 1, so when you copy the formula across cells, that reference remains pointing to the same cell. Relative references, by contrast, adjust as the formula is copied. Mixed references lock only the column or the row, using $A1 or A$1. Understanding these differences is the foundation of building reliable, scalable spreadsheets.

How to enter absolute references in Google Sheets

Absolute references are entered by adding a dollar sign ($) before the column letter and/or row number in a cell reference. For example, in the formula =B2*$D$1, the D1 portion is anchored to the same cell no matter where you copy the formula. You can type the dollar signs manually, or click the reference and press F4 to toggle between types: relative (A1), mixed (A$1 or $A1), and absolute ($A$1). The F4 shortcut makes it quick to switch as you edit formulas.

Mixed references: when to lock only one dimension

There are times when you want to lock only the column or only the row. A mixed reference locks one axis while allowing the other to change when you copy the formula. Examples: $A1 locks the column A but allows the row to change; A$1 locks the row 1 but lets the column change. Mixed references are especially useful when you want to apply the same operation across multiple columns while keeping a single row constant (or vice versa).

Practical examples across real datasets

Example 1: You have a list of items with prices in column B (B2:B100) and a fixed tax rate in D1. To calculate total with tax in column C, use =B2*$D$1 and copy down. As you drag the formula down, the tax rate remains anchored in D1, while the price in B2 changes to B3, B4, etc. Example 2: If you want to multiply a quantity in A2 by a per-unit rate in B$2 and copy across columns, use =A2*B$2. The row anchor keeps the rate constant while adjusting the quantity across rows. Example 3: When using VLOOKUP with a fixed lookup table in E$2:F$20, the lookup range should be anchored so that copying the formula across columns won’t shift the table.

Common mistakes and how to fix them

One frequent error is accidentally locking the wrong part of a reference. If you anchor the entire range (e.g., $A$1:$B$10) when you only meant to anchor a single cell, you’ll restrict formula behavior as you copy. Another mistake is mixing relative references in long rows without planning; this can cause unexpected results in both rows and columns. Always double-check the anchored parts after pasting formulas, and test on a small sample before applying to your entire dataset.

Tips for using absolute references in functions and arrays

When you use functions like SUM, AVERAGE, or VLOOKUP, you often want to lock the lookup range or the result cell. For example, =SUM($B$2:$B$100) anchors the column and rows so the same range is summed regardless of where the formula sits. If you’re using an array formula, anchor the range used in the operation to avoid shifting results when you expand the array. Always consider whether the anchor should be absolute ($) or mixed ($A1, A$1) based on how you’ll copy the formula.

Quick-reference cheat sheet

  • Absolute reference: lock both axis with $A$1.
  • Mixed reference: lock one axis with $A1 or A$1.
  • Use F4 to toggle reference types quickly.
  • Anchor ranges when copying formulas across rows/columns to keep results consistent.
  • Test formulas by applying to a small sample before scaling up.

Tools & Materials

  • Computer or mobile device with internet access(Browser-based Google Sheets access or Google Sheets app)
  • Google account(Needed to access Google Sheets and save work)
  • Initial sample Google Sheet(Include a few formulas to practice absolute/mixed references)
  • Note-taking app or document(Useful for recording rules and patterns)

Steps

Estimated time: 20-30 minutes

  1. 1

    Open your Google Sheet

    Launch the target sheet in Google Sheets and identify formulas that reference other cells. This step sets the stage for anchoring references and ensures you’re practicing on real data.

    Tip: Have a backup copy of the sheet before making anchors to avoid accidental data loss.
  2. 2

    Identify anchors to fix

    Scan formulas to determine which parts should not shift when copied. Decide whether the anchor should be a row, a column, or both based on the calculation logic.

    Tip: Use the formula bar to highlight the exact cell references you plan to fix.
  3. 3

    Apply absolute references

    Edit the formula to include $ in the appropriate places (e.g., $A$1, $D$1, or A$1). You can type the dollars or press F4 to cycle through reference types.

    Tip: If editing by hand, ensure you don’t accidentally remove other essential parts of the reference.
  4. 4

    Test by dragging the formula

    Copy the formula down or across adjacent cells to verify anchors hold as intended. Check several results to confirm consistency.

    Tip: Keep a small test set to verify across multiple directions (down, right, up).
  5. 5

    Use mixed references when needed

    When only one axis should stay constant, switch to mixed references like $A1 or A$1. This provides flexibility while preserving the intended anchor.

    Tip: Reserve mixed references for patterns that repeat across columns or rows.
  6. 6

    Document your anchoring strategy

    Add a short note near the formulas or in a separate sheet to explain why and how anchors were applied. This helps teammates understand future edits.

    Tip: Create a legend for your anchors if the sheet is shared.
Pro Tip: Use F4 to quickly toggle between relative, mixed, and absolute references while editing.
Warning: Do not over-anchor; anchoring too many cells can prevent intended dynamic calculations.
Note: Always test formulas after anchoring by dragging to ensure correct results.
Pro Tip: When using functions like VLOOKUP, anchor the lookup range to avoid misalignment.
Pro Tip: Label anchors or keep a small reference guide in a separate sheet for teammates.

FAQ

What is an absolute reference in Google Sheets?

An absolute reference locks a cell or range so it doesn't shift when you copy a formula. It uses dollar signs, like $A$1, to fix the exact cell. This is essential for stable calculations that rely on a constant value or table.

An absolute reference locks the exact cell, so copying a formula keeps that same cell reference fixed.

How do I switch between absolute and relative references?

Click the cell reference in the formula and press F4 to cycle through relative, mixed, and absolute options. You can also manually add or remove dollar signs to control anchoring.

Use F4 to toggle referencing modes or edit the dollar signs directly.

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

Both locks are different: $A$1 locks both column and row, while A$1 locks only the row. This allows the column to change when copied across columns while keeping row 1 fixed.

A$1 locks the row only; $A$1 locks both axis.

Can I lock a range in a formula?

Yes. You can lock a range like $B$2:$B$20 to ensure the entire column segment stays fixed when used in a formula copied across cells.

You can lock a fixed range with dollar signs on both ends.

Is there a keyboard shortcut to add dollar signs?

The common shortcut is F4 while editing a cell reference to cycle through relative, mixed, and absolute states. This speeds up anchoring significantly.

Press F4 to toggle reference types quickly.

Watch Video

The Essentials

  • Anchor references using $ to lock both axes.
  • Use mixed references to fix one axis only.
  • Test formulas by filling across rows and columns.
  • Document your anchoring strategy for teammates.
Infographic showing steps to apply absolute references in Google Sheets
Absolute references in Google Sheets: a three-step process

Related Articles