LibreOffice Calc: What is the data range syntax?

5,152

What's in row 1? If it's the column label, then Sheet1.A:A works. Apparently, Calc ignores rows that do not contain numeric values.

$Sheet1.$A:$A

Otherwise, use Sheet1.A2:A1048576 for the maximum number of rows.

Either way, however, it's much slower than specifying only the rows that contain data, for example Sheet1.A2:A100.

EDIT:

There are workarounds for automatically expanding the chart's area. Browse through these related questions:

Share:
5,152

Related videos on Youtube

Xunie
Author by

Xunie

I came. I saw. I coded.

Updated on September 18, 2022

Comments

  • Xunie
    Xunie over 1 year

    I want to specify a graph's data ranges, but I don't know what format the data range specifier strings are in. Specifically, I'd like to specify all cells in Column A starting and including row 2 for a graph.

    I tried checking the LibreOffice wiki which unhelpfully links to the OpenOffice wiki which isn't helpful either.

    • fixer1234
      fixer1234 almost 6 years
      LO Calc accepts an entire column in the form A:A, but it doesn't accept that form with a starting row. If you need to specify a starting row, you also need to specify an ending row.
  • Xunie
    Xunie almost 6 years
    Can I specify the EXACT number of rows with some kind of sheet variable instead of a literal number?
  • Jim K
    Jim K almost 6 years
    It seems not. I defined a named range with Sheet -> Named Ranges and Expressions -> Define, but the chart did not accept the name. See links in edited answer.