Difference between revisions of "Referencing data from other spreadsheets"

From Apache OpenOffice Wiki
Jump to: navigation, search
(+cat)
m
 
Line 1: Line 1:
<div class="body refbody"><p class="shortdesc">You can reference data from other spreadsheets and update
+
You can reference data from other spreadsheets and update
it.</p>
+
it.
<div class="section"><div class="p">To reference a cell value in another spreadsheet, do the
+
<ol>
following steps:<ol class="ol"><li class="li">In your current spreadsheet, select the cell to add the reference.</li>
+
<li>In your current spreadsheet, select the cell to add the reference.</li>
<li class="li">On the <span class="ph uicontrol">Formula</span> toolbar, click the <span class="ph uicontrol">Function</span> icon.</li>
+
<li>On the '''Formula''' toolbar, click the '''Function''' icon.</li>
<li class="li">In the <span class="ph uicontrol">Formula Input Line</span>, enter the code
+
<li>In the '''Formula Input Line''', enter the code in the following format:<br /> <tt>FilePathSheetNameDataRange</tt><br />
in the following format. <pre class="pre codeblock"><code>'file:/<strong class="ph b"><var class="keyword varname">FilePath</var></strong>'#<strong class="ph b"><var class="keyword varname">SheetName</var></strong>.<strong class="ph b"><var class="keyword varname">DataRange</var></strong></code></pre>
+
For example, to reference A1:B5 in the '''example.ods''' file under the '''c:/temp/''' directory, enter ''''file:/c:/temp/example.ods'#Sheet1.A1:B5</samp>.</li>
For
+
<li>Press {{key|Enter}}.</li>
example, to reference A1:B5 in the <span class="ph filepath">example.ods</span> file
 
under the <span class="ph filepath">c:/temp/</span> directory, enter <samp class="ph codeph">'file:/c:/temp/example.ods'#Sheet1.A1:B5</samp>.</li>
 
<li class="li">Press Enter.</li>
 
 
</ol>
 
</ol>
</div>
+
 
</div>
 
</div>
 
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Calc]]
 
[[Category:Calc]]

Latest revision as of 09:23, 8 June 2026

You can reference data from other spreadsheets and update it.

  1. In your current spreadsheet, select the cell to add the reference.
  2. On the Formula toolbar, click the Function icon.
  3. In the Formula Input Line, enter the code in the following format:
    FilePathSheetNameDataRange
    For example, to reference A1:B5 in the example.ods file under the c:/temp/ directory, enter 'file:/c:/temp/example.ods'#Sheet1.A1:B5.
  4. Press  ↵ Enter .
Personal tools