Update ooo320-m1
[ooovba.git] / helpcontent2 / source / text / scalc / guide / value_with_name.xhp
blobf5dba0752dbace39c316db2af8a40cbc8ef8021b
1 <?xml version="1.0" encoding="UTF-8"?>
2 <helpdocument version="1.0">
4 <!--
5 ***********************************************************************
7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8 *
9 * Copyright 2008 by Sun Microsystems, Inc.
11 * OpenOffice.org - a multi-platform office productivity suite
13 * $RCSfile: soffice2xmlhelp.xsl,v $
14 * $Revision: 1.10 $
16 * This file is part of OpenOffice.org.
18 * OpenOffice.org is free software: you can redistribute it and/or modify
19 * it under the terms of the GNU Lesser General Public License version 3
20 * only, as published by the Free Software Foundation.
22 * OpenOffice.org is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU Lesser General Public License version 3 for more details
26 * (a copy is included in the LICENSE file that accompanied this code).
28 * You should have received a copy of the GNU Lesser General Public License
29 * version 3 along with OpenOffice.org. If not, see
30 * <http://www.openoffice.org/license.html>
31 * for a copy of the LGPLv3 License.
33 ************************************************************************
34 -->
37 <meta>
38 <topic id="textscalcguidevalue_with_namexml" indexer="include" status="PUBLISH">
39 <title xml-lang="en-US" id="tit">Naming Cells</title>
40 <filename>/text/scalc/guide/value_with_name.xhp</filename>
41 </topic>
42 </meta>
43 <body>
44 <bookmark xml-lang="en-US" branch="index" id="bm_id3147434"><bookmark_value>cells; defining names</bookmark_value>
45 <bookmark_value>names; defining for cells</bookmark_value>
46 <bookmark_value>values; defining names</bookmark_value>
47 <bookmark_value>constants definition</bookmark_value>
48 <bookmark_value>variables; defining names</bookmark_value>
49 <bookmark_value>cell ranges; defining names</bookmark_value>
50 <bookmark_value>defining;names for cell ranges</bookmark_value>
51 <bookmark_value>formulas; defining names</bookmark_value>
52 <bookmark_value>addressing; by defined names</bookmark_value>
53 <bookmark_value>cell names; defining/addressing</bookmark_value>
54 <bookmark_value>references; by defined names</bookmark_value>
55 <bookmark_value>allowed cell names</bookmark_value>
56 <bookmark_value>renaming;cells</bookmark_value>
57 </bookmark><comment>mw changed "names;...", "addressing;..." and "references,..." entries.</comment><comment>mw added "renaming;"</comment>
58 <paragraph xml-lang="en-US" id="hd_id3147434" role="heading" level="1" l10n="U" oldref="1"><variable id="value_with_name"><link href="text/scalc/guide/value_with_name.xhp" name="Naming Cells">Naming Cells</link>
59 </variable></paragraph>
60 <paragraph xml-lang="en-US" id="hd_id4391918" role="heading" level="2" l10n="NEW">Allowed names</paragraph>
61 <paragraph xml-lang="en-US" id="par_id2129581" role="paragraph" l10n="NEW">Names in Calc can contain letters, numeric characters, and some special characters. Names must start with a letter or an underline character.</paragraph>
62 <paragraph xml-lang="en-US" id="par_id1120029" role="paragraph" l10n="NEW">Allowed special characters:</paragraph>
63 <list type="unordered">
64 <listitem>
65 <paragraph xml-lang="en-US" id="par_id3362224" role="paragraph" l10n="NEW">underline (_) </paragraph>
66 </listitem>
67 <listitem>
68 <paragraph xml-lang="en-US" id="par_id4891506" role="paragraph" l10n="NEW">period (.) - allowed within a name, but not as first or last character</paragraph>
69 </listitem>
70 <listitem>
71 <paragraph xml-lang="en-US" id="par_id2816553" role="paragraph" l10n="NEW">blank ( ) - allowed within a name, but not as first or last character, and not for a cell range</paragraph>
72 </listitem>
73 </list>
74 <paragraph xml-lang="en-US" id="par_id328989" role="paragraph" l10n="NEW">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.</paragraph>
75 <paragraph xml-lang="en-US" id="par_id4769737" role="paragraph" l10n="NEW">Names for cell ranges must not include blanks. Blanks are allowed within names for single cells, sheets and documents.</paragraph>
76 <paragraph xml-lang="en-US" id="hd_id1226233" role="heading" level="2" l10n="NEW">Naming cells and formulas</paragraph>
77 <paragraph xml-lang="en-US" id="par_id5489364" role="paragraph" l10n="NEW">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 <emph>Start</emph>. You can then write a formula such as "=SUM(Start)". Even after you insert or delete rows or columns, $[officename] still correctly assigns the ranges identified by name. Range names must not contain any spaces.</paragraph>
78 <paragraph xml-lang="en-US" id="par_id953398" role="paragraph" l10n="NEW">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."</paragraph>
79 <paragraph xml-lang="en-US" id="par_id4889675" role="paragraph" l10n="NEW">Use the <emph>Define Names</emph> dialog to define names for formulas or parts of formulas you need more often. In order to specify range names,</paragraph>
80 <list type="ordered">
81 <listitem>
82 <paragraph xml-lang="en-US" id="par_id3153954" role="listitem" l10n="U" oldref="3">Select a cell or range of cells, then choose <emph>Insert - Names - Define</emph>. The <emph>Define Names</emph> dialog appears.</paragraph>
83 </listitem>
84 <listitem>
85 <paragraph xml-lang="en-US" id="par_id3156283" role="listitem" l10n="U" oldref="4">Type the name of the selected area in the <emph>Name</emph> field. Click <emph>Add</emph>. The newly defined name appears in the list below. Click OK to close the dialog.</paragraph>
86 </listitem>
87 </list>
88 <paragraph xml-lang="en-US" id="par_id5774101" role="paragraph" l10n="NEW">You can also name other cell ranges in this dialog by entering the name in the field and then selecting the respective cells.</paragraph>
89 <paragraph xml-lang="en-US" id="par_id3154942" role="paragraph" l10n="U" oldref="5">If you type the name in a formula, after the first few characters entered you will see the entire name as a tip.</paragraph>
90 <list type="unordered">
91 <listitem>
92 <paragraph xml-lang="en-US" id="par_id3154510" role="listitem" l10n="U" oldref="6">Press the Enter key in order to accept the name from the tip.</paragraph>
93 </listitem>
94 <listitem>
95 <paragraph xml-lang="en-US" id="par_id3150749" role="listitem" l10n="U" oldref="7">If more than one name starts with the same characters, you can scroll through all the names using the Tab key.<comment>mw copied contents from Calc guide address_byname.xhp</comment></paragraph>
96 </listitem>
97 </list>
98 <section id="relatedtopics">
99 <paragraph xml-lang="en-US" id="par_id3153711" role="paragraph" l10n="U" oldref="8"><link href="text/scalc/01/04070100.xhp" name="Insert - Names - Define">Insert - Names - Define</link></paragraph>
100 <embed href="text/scalc/guide/goalseek.xhp#goalseek"/>
101 <embed href="text/scalc/guide/relativ_absolut_ref.xhp#relativ_absolut_ref"/>
102 <embed href="text/scalc/guide/address_auto.xhp#address_auto"/><comment>mw deleted one EMBED paragraph and copied two EMBED paragraphs from Calc guide address_byname.xhp</comment>
103 </section>
104 </body>
105 </helpdocument>