Absolute vs Relative References in LibreOffice Calc

In LibreOffice Calc, understanding how cell references behave is essential for building accurate and dynamic spreadsheets. This article explains the fundamental differences between relative and absolute cell references, how the dollar sign ($) modifier locks cell coordinates, how mixed references work, and how to switch between these reference types to streamline your formula creation.

Relative Cell References

A relative reference is the default reference type in LibreOffice Calc. When you write a formula referencing a cell (such as =A1 + B1) and copy or drag it across rows or columns, the reference coordinates automatically adjust based on their relative distance from the new formula location.

Absolute Cell References

An absolute cell reference points to a fixed cell address. When you copy or autofill a formula containing absolute references, the referenced cell coordinates remain unchanged, regardless of where the formula is moved.

Mixed Cell References

Mixed references lock either only the column or only the row, leaving the other dimension relative.

Key Differences at a Glance

Feature Relative Reference (A1) Absolute Reference ($A$1)
Syntax No dollar signs (A1) Dollar signs on both coordinates ($A$1)
Copying Behavior Adjusts relative to the new cell position Remains permanently fixed to the target cell
Default Setting Yes No
Typical Application Line-item totals, dynamic sequences Fixed rates, lookup tables, constant variables

How to Switch Reference Types in LibreOffice Calc

To quickly toggle between relative, absolute, and mixed references without manually typing dollar signs:

  1. Double-click the cell to edit the formula, or select it and click in the Formula Bar.
  2. Place your cursor on or directly next to the cell reference you want to change.
  3. Press Shift + F4 on your keyboard to cycle through the available reference types: A1$A$1A$1$A1A1.