תוכן
\<bookmark_value\>automatic addressing in tables\</bookmark_value\>\<bookmark_value\>natural language addressing\</bookmark_value\>\<bookmark_value\>formulas; using row/column labels\</bookmark_value\>\<bookmark_value\>text in cells; as addressing\</bookmark_value\>\<bookmark_value\>addressing; automatic\</bookmark_value\>\<bookmark_value\>name recognition on/off\</bookmark_value\>\<bookmark_value\>row headers;using in formulas\</bookmark_value\>\<bookmark_value\>column headers;using in formulas\</bookmark_value\>\<bookmark_value\>columns; finding labels automatically\</bookmark_value\>\<bookmark_value\>rows; finding labels automatically\</bookmark_value\>\<bookmark_value\>recognizing; column and row labels\</bookmark_value\>

# Recognizing Names as Addressing

You can use cells with text to refer to the rows or to the columns that contain the cells.

If the resulting cell is below or above another cell containing text, LibreOffice Calc assumes the text as a column label, else LibreOffice Calc assumes the text as a row label.

In the example spreadsheet, you can use the string \<item type=\"literal\"\>'Column One'\</item\> in a formula to refer to the cell range \<item type=\"literal\"\>B3\</item\> to \<item type=\"literal\"\>B5\</item\>, or \<item type=\"literal\"\>'Column Two'\</item\> for the cell range \<item type=\"literal\"\>C2\</item\> to \<item type=\"literal\"\>C5\</item\>. You can also use \<item type=\"literal\"\>'Row One'\</item\> for the cell range \<item type=\"literal\"\>B3\</item\> to \<item type=\"literal\"\>D3\</item\>, or \<item type=\"literal\"\>'Row Two'\</item\> for the cell range \<item type=\"literal\"\>B4\</item\> to \<item type=\"literal\"\>D4\</item\>. The result of a formula that uses a cell name, for example, \<item type=\"literal\"\>SUM('Column One')\</item\>, is 600.

Automatically finding labels is a legacy feature and deactivated by default as it can produce nondeterministic behavior depending on actual document content. To turn this function on, choose LibreOffice - PreferencesTools - Options - LibreOffice Calc - Calculate and mark the Automatically find column and row labels check box.

Using defined labels instead is always possible and behaves similar but in a defined way.

If you enter a label name in the formula yourself, enclose the name in single quotation marks ('). If a single quotation mark appears in a name, you must double it, for example, 'Harry''s Bar'.

נושאים קשורים

Naming Cells

Define Label Range

Addresses and References, Absolute and Relative