1*cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2*cdf0e10cSrcweir<helpdocument version="1.0">
3*cdf0e10cSrcweir
4*cdf0e10cSrcweir<!--
5*cdf0e10cSrcweir***********************************************************************
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
12*cdf0e10cSrcweir *
13*cdf0e10cSrcweir * This file is part of OpenOffice.org.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
16*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
17*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
18*cdf0e10cSrcweir *
19*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
20*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
21*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
23*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
24*cdf0e10cSrcweir *
25*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
26*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
27*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
28*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
29*cdf0e10cSrcweir *
30*cdf0e10cSrcweir ************************************************************************
31*cdf0e10cSrcweir -->
32*cdf0e10cSrcweir
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir<meta>
35*cdf0e10cSrcweir      <topic id="textscalcguidecellreferencesxml" indexer="include" status="PUBLISH">
36*cdf0e10cSrcweir         <title xml-lang="en-US" id="tit">Referencing a Cell in Another Document</title>
37*cdf0e10cSrcweir         <filename>/text/scalc/guide/cellreferences.xhp</filename>
38*cdf0e10cSrcweir      </topic>
39*cdf0e10cSrcweir   </meta>
40*cdf0e10cSrcweir   <body>
41*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id3147436"><bookmark_value>sheet references</bookmark_value>
42*cdf0e10cSrcweir      <bookmark_value>references; to cells in other sheets/documents</bookmark_value>
43*cdf0e10cSrcweir      <bookmark_value>cells; operating in another document</bookmark_value>
44*cdf0e10cSrcweir      <bookmark_value>documents;references</bookmark_value>
45*cdf0e10cSrcweir</bookmark><comment>mw made "sheet references;" a one level entry</comment><comment>MW changed "references;" and added "documents;"</comment>
46*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3147436" role="heading" level="1" l10n="CHG"
47*cdf0e10cSrcweir                 oldref="9"><variable id="cellreferences"><link href="text/scalc/guide/cellreferences.xhp" name="Referencing Other Sheets">Referencing Other Sheets</link>
48*cdf0e10cSrcweir</variable></paragraph>
49*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id9663075" role="paragraph" l10n="NEW">In a sheet cell you can show a reference to a cell in another sheet.</paragraph>
50*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id1879329" role="paragraph" l10n="NEW">In the same way, a reference can also be made to a cell from another document provided that this document has already been saved as a file.</paragraph>
51*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="hd_id7122409" role="heading" level="2" l10n="NEW">To Reference a Cell in the Same Document</paragraph>
52*cdf0e10cSrcweir      <list type="ordered">
53*cdf0e10cSrcweir         <listitem>
54*cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id2078005" role="listitem" l10n="NEW">Open a new, empty spreadsheet.</paragraph>
55*cdf0e10cSrcweir         </listitem>
56*cdf0e10cSrcweir         <listitem>
57*cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id4943693" role="listitem" l10n="NEW">By way of example, enter the following formula in cell A1 of Sheet1:</paragraph>
58*cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id9064302" role="listitem" l10n="NEW">
59*cdf0e10cSrcweir               <item type="literal">=Sheet2.A1</item>
60*cdf0e10cSrcweir            </paragraph>
61*cdf0e10cSrcweir         </listitem>
62*cdf0e10cSrcweir         <listitem>
63*cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id7609790" role="listitem" l10n="NEW">Click the <emph>Sheet 2</emph> tab at the bottom of the spreadsheet. Set the cursor in cell A1 there and enter text or a number.</paragraph>
64*cdf0e10cSrcweir         </listitem>
65*cdf0e10cSrcweir         <listitem>
66*cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id809961" role="listitem" l10n="NEW">If you switch back to Sheet1, you will see the same content in cell A1 there. If the contents of Sheet2.A1 change, then the contents of Sheet1.A1 also change.</paragraph>
67*cdf0e10cSrcweir         </listitem>
68*cdf0e10cSrcweir      </list>
69*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="hd_id9209570" role="heading" level="2" l10n="NEW">To Reference a Cell in Another Document</paragraph>
70*cdf0e10cSrcweir      <list type="ordered">
71*cdf0e10cSrcweir         <listitem>
72*cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id5949278" role="listitem" l10n="NEW">Choose <emph>File - Open</emph>, to load an existing spreadsheet document.</paragraph>
73*cdf0e10cSrcweir         </listitem>
74*cdf0e10cSrcweir         <listitem>
75*cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id8001953" role="listitem" l10n="NEW">Choose <emph>File - New</emph>, to open a new spreadsheet document. Set the cursor in the cell where you want to insert the external data and enter an equals sign to indicate that you want to begin a formula.</paragraph>
76*cdf0e10cSrcweir         </listitem>
77*cdf0e10cSrcweir         <listitem>
78*cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id8571123" role="listitem" l10n="NEW">Now switch to the document you have just loaded. Click the cell with the data that you want to insert in the new document.</paragraph>
79*cdf0e10cSrcweir         </listitem>
80*cdf0e10cSrcweir         <listitem>
81*cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id8261665" role="listitem" l10n="NEW">Switch back to the new spreadsheet. In the input line you will now see how $[officename] Calc has added the reference to the formula for you. </paragraph>
82*cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id5888241" role="listitem" l10n="NEW">The reference to a cell of another document contains the name of the other document in single inverted commas, then a hash #, then the name of the sheet of the other document, followed by a point and the name of the cell.</paragraph>
83*cdf0e10cSrcweir         </listitem>
84*cdf0e10cSrcweir         <listitem>
85*cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id7697683" role="listitem" l10n="NEW">Confirm the formula by clicking the green check mark.</paragraph>
86*cdf0e10cSrcweir         </listitem>
87*cdf0e10cSrcweir         <listitem>
88*cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id7099826" role="listitem" l10n="NEW">If you drag the box in the lower right corner of the active cell to select a range of cells, $[officename] automatically inserts the corresponding references in the adjacent cells. As a result, the sheet name is preceded with a "$" sign to designate it as an absolute reference.</paragraph>
89*cdf0e10cSrcweir         </listitem>
90*cdf0e10cSrcweir      </list>
91*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id674459" role="paragraph" l10n="NEW">If you examine the name of the other document in this formula, you will notice that it is written as a <link href="text/shared/00/00000002.xhp#url" name="URL">URL</link>. This means that you can also enter a URL from the Internet.</paragraph>
92*cdf0e10cSrcweir      <section id="relatedtopics">
93*cdf0e10cSrcweir         <embed href="text/scalc/guide/cellreferences_url.xhp#cellreferences_url"/>
94*cdf0e10cSrcweir      </section>
95*cdf0e10cSrcweir   </body>
96*cdf0e10cSrcweir</helpdocument>