cEdPu‖Naming Cells

Contents
DGAwD‖

# vT4C3‖Naming Cells

## EyNmi‖Allowed names

MECFu‖Names in Calc can contain letters, numeric characters, and the underline character. Names must start with a letter or an underline character.

GztrF‖Allowed special characters:

- q4oWP‖underline (_)

BvnNt‖Names must not be the same as cell references. For example, the name A1 is invalid because A1 is a cell reference to the top left cell.

ufHkJ‖Names must not start with the letters C or R followed by a number; also single characters C and R are not allowed as names. See the ADDRESS function for more information.

6piLZ‖Names for cell ranges must not include blanks. Blanks are allowed within names for sheets and documents.

## wNYEr‖Naming cells and ranges

FPo7Y‖A good way of making the references to cells and cell ranges in formulas legible is to give the ranges names. For example, you can name the range A1:B2 Start. You can then write a formula such as "=SUM(Start)". Even after you insert or delete rows or columns, LibreOffice still correctly assigns the ranges identified by name. Range names must not contain any spaces.

aZZC8‖For example, it is much easier to read a formula for sales tax if you can write "= Amount * Tax_rate" instead of "= A5 * B12". In this case, you would name cell A5 "Amount" and cell B12 "Tax_rate."

LViNz‖Use the Define Names dialog to define names for formulas or parts of formulas you need more often. In order to specify range names,

1. UNzu6‖Select a cell or range of cells, then choose Sheet - Named Ranges and Expressions - Define. The Define Names dialog appears.

2. XRBXG‖Type the name of the selected area in the Name field. Click Add. The newly defined name appears in the list below. Click OK to close the dialog.

wehKd‖You can also name other cell ranges in this dialog by entering the name in the field and then selecting the respective cells.

3sCdF‖If you type the name in a formula, after the first few characters entered you will see the entire name as a tip.

- SgWa3‖Press the Enter key in order to accept the name from the tip.

- dGV3u‖If more than one name starts with the same characters, you can scroll forward through all the names using the CommandCtrl + Tab keys and backward using the Shift + CommandCtrl + Tab keys.

## heTpi‖Naming Formulas

guYKD‖You can assign a simpler or more familiar name to a long or complex formula expression.

1. GHCkL‖Choose Sheet - Named Ranges and Expressions - Define. The Define Names dialog appears.

2. aFBj9‖Enter the name for the formula expression in the Name field.

3. vSREF‖Enter the formula expression in the Range or formula expression box. For example, if you have named your formula HYP, you can enter the expression SQRT(A1*A1 + B1*B1) to compute the distance between two points on a plane. Do not precede the expression with an equal sign (=).

4. mh2cC‖Click Add. The newly defined name appears in the list below. Click OK to close the dialog.

5. BiumC‖Enter the name of the named formula in the desired cell. The cell value is the result of the formula expression. For example, enter =HYP() to compute the formula above. Note that you cannot directly pass parameters to named formulas.

8kfDA‖Naming conventions apply to named formulas. Absolute and relative references are respected. For example, when the named formula is copied and pasted.

Related Topics

j7cYG‖Sheet - Named Ranges and Expressions - Define

Applying Goal Seek

Addresses and References, Absolute and Relative

Recognizing Names as Addressing

Please support us!