LibreOffice Calc Header and Footer Variables

When printing spreadsheets in LibreOffice Calc, headers and footers can automatically display dynamic document metadata using predefined variables. This article outlines all the built-in variables available for headers and footers—including page counts, dates, times, file names, and sheet names—and explains how to apply them to your print layouts.

To insert variables into a header or footer in LibreOffice Calc:

  1. Open your spreadsheet and navigate to Format in the top menu.
  2. Select Page Style (or Page in older versions).
  3. Click either the Header or Footer tab.
  4. Ensure the Header on or Footer on checkbox is enabled, then click the Edit… button.

The editor window provides three distinct sections (Left area, Center area, and Right area) where you can enter custom text and insert dynamic variable buttons.

LibreOffice Calc provides standard variable buttons located below the text entry fields in the editor:

Creating Common Formats

You can combine static text with dynamic variables to create standard document notations: