1*b1cdbd2cSJim Jagielski<?xml version="1.0" encoding="UTF-8"?> 2*b1cdbd2cSJim Jagielski<helpdocument version="1.0"> 3*b1cdbd2cSJim Jagielski 4*b1cdbd2cSJim Jagielski<!--*********************************************************** 5*b1cdbd2cSJim Jagielski * 6*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one 7*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file 8*b1cdbd2cSJim Jagielski * distributed with this work for additional information 9*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file 10*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the 11*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance 12*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at 13*b1cdbd2cSJim Jagielski * 14*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0 15*b1cdbd2cSJim Jagielski * 16*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing, 17*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an 18*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 19*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the 20*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations 21*b1cdbd2cSJim Jagielski * under the License. 22*b1cdbd2cSJim Jagielski * 23*b1cdbd2cSJim Jagielski ***********************************************************--> 24*b1cdbd2cSJim Jagielski 25*b1cdbd2cSJim Jagielski 26*b1cdbd2cSJim Jagielski 27*b1cdbd2cSJim Jagielski 28*b1cdbd2cSJim Jagielski<meta> 29*b1cdbd2cSJim Jagielski <topic id="textscalcguidecellreferencesxml" indexer="include" status="PUBLISH"> 30*b1cdbd2cSJim Jagielski <title xml-lang="en-US" id="tit">Referencing a Cell in Another Document</title> 31*b1cdbd2cSJim Jagielski <filename>/text/scalc/guide/cellreferences.xhp</filename> 32*b1cdbd2cSJim Jagielski </topic> 33*b1cdbd2cSJim Jagielski </meta> 34*b1cdbd2cSJim Jagielski <body> 35*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="index" id="bm_id3147436"><bookmark_value>sheet references</bookmark_value> 36*b1cdbd2cSJim Jagielski <bookmark_value>references; to cells in other sheets/documents</bookmark_value> 37*b1cdbd2cSJim Jagielski <bookmark_value>cells; operating in another document</bookmark_value> 38*b1cdbd2cSJim Jagielski <bookmark_value>documents;references</bookmark_value> 39*b1cdbd2cSJim Jagielski</bookmark><comment>mw made "sheet references;" a one level entry</comment><comment>MW changed "references;" and added "documents;"</comment> 40*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3147436" role="heading" level="1" l10n="CHG" 41*b1cdbd2cSJim Jagielski oldref="9"><variable id="cellreferences"><link href="text/scalc/guide/cellreferences.xhp" name="Referencing Other Sheets">Referencing Other Sheets</link> 42*b1cdbd2cSJim Jagielski</variable></paragraph> 43*b1cdbd2cSJim Jagielski <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> 44*b1cdbd2cSJim Jagielski <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> 45*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="hd_id7122409" role="heading" level="2" l10n="NEW">To Reference a Cell in the Same Document</paragraph> 46*b1cdbd2cSJim Jagielski <list type="ordered"> 47*b1cdbd2cSJim Jagielski <listitem> 48*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id2078005" role="listitem" l10n="NEW">Open a new, empty spreadsheet.</paragraph> 49*b1cdbd2cSJim Jagielski </listitem> 50*b1cdbd2cSJim Jagielski <listitem> 51*b1cdbd2cSJim Jagielski <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> 52*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id9064302" role="listitem" l10n="NEW"> 53*b1cdbd2cSJim Jagielski <item type="literal">=Sheet2.A1</item> 54*b1cdbd2cSJim Jagielski </paragraph> 55*b1cdbd2cSJim Jagielski </listitem> 56*b1cdbd2cSJim Jagielski <listitem> 57*b1cdbd2cSJim Jagielski <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> 58*b1cdbd2cSJim Jagielski </listitem> 59*b1cdbd2cSJim Jagielski <listitem> 60*b1cdbd2cSJim Jagielski <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> 61*b1cdbd2cSJim Jagielski </listitem> 62*b1cdbd2cSJim Jagielski </list> 63*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="hd_id9209570" role="heading" level="2" l10n="NEW">To Reference a Cell in Another Document</paragraph> 64*b1cdbd2cSJim Jagielski <list type="ordered"> 65*b1cdbd2cSJim Jagielski <listitem> 66*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id5949278" role="listitem" l10n="NEW">Choose <emph>File - Open</emph>, to load an existing spreadsheet document.</paragraph> 67*b1cdbd2cSJim Jagielski </listitem> 68*b1cdbd2cSJim Jagielski <listitem> 69*b1cdbd2cSJim Jagielski <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> 70*b1cdbd2cSJim Jagielski </listitem> 71*b1cdbd2cSJim Jagielski <listitem> 72*b1cdbd2cSJim Jagielski <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> 73*b1cdbd2cSJim Jagielski </listitem> 74*b1cdbd2cSJim Jagielski <listitem> 75*b1cdbd2cSJim Jagielski <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> 76*b1cdbd2cSJim Jagielski <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> 77*b1cdbd2cSJim Jagielski </listitem> 78*b1cdbd2cSJim Jagielski <listitem> 79*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id7697683" role="listitem" l10n="NEW">Confirm the formula by clicking the green check mark.</paragraph> 80*b1cdbd2cSJim Jagielski </listitem> 81*b1cdbd2cSJim Jagielski <listitem> 82*b1cdbd2cSJim Jagielski <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> 83*b1cdbd2cSJim Jagielski </listitem> 84*b1cdbd2cSJim Jagielski </list> 85*b1cdbd2cSJim Jagielski <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> 86*b1cdbd2cSJim Jagielski <section id="relatedtopics"> 87*b1cdbd2cSJim Jagielski <embed href="text/scalc/guide/cellreferences_url.xhp#cellreferences_url"/> 88*b1cdbd2cSJim Jagielski </section> 89*b1cdbd2cSJim Jagielski </body> 90*b1cdbd2cSJim Jagielski</helpdocument>