Difference between revisions of "Referencing data in a spreadsheet"

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 cells or sheets in the
+
You can reference data from other cells or sheets in the same document. The result data changes accordingly when the source data has changed.
same document. The result data changes accordingly when the source
+
 
data has changed.</p>
+
Suppose that in a spreadsheet, you are trying to sum the values of cell A1 in Sheet1 and cell B1 in Sheet2, and put the result into cell C1 in Sheet3. To accomplish the task, do the following steps:
<div class="section"><div class="p">Suppose that in a spreadsheet, you are trying to sum the
+
<ol>
values of cell A1 in Sheet1 and cell B1 in Sheet2, and put the result
+
<li>Select cell C1 in Sheet3.</li>
into cell C1 in Sheet3. To accomplish the task, do the following steps:<ol class="ol"><li class="li">Select cell C1 in Sheet3.</li>
+
<li>On the <span class="ph uicontrol">Formula</span> toolbar, click the '''Function''' icon [[File:s_function_icon.jpg]].</li>
<li class="li">On the <span class="ph uicontrol">Formula</span> toolbar, click the <span class="ph uicontrol">Function</span> icon [[File:s_function_icon.jpg]]. </li>
+
<li>You can use either of the following ways to edit the formula.  
<li class="li">You can use either of the following ways to edit the formula. <ul class="ul"><li class="li">Enter <samp class="ph codeph">Sheet1.A1+Sheet2.B1</samp> after the Equal sign
+
<ul>
(=).</li>
+
<li>Enter <tt>Sheet1.A1+Sheet2.B1</tt> after the Equal sign (=).</li>
<li class="li">You can also complete the formula by selecting the cells in the
+
<li>You can also complete the formula by selecting the cells in the
following way.<ol class="ol" type="a"><li class="li">In Sheet1, select cell A1.</li>
+
following way:
<li class="li">In Sheet3, enter a Plus sign (+)  in the <span class="ph uicontrol">Formula Input
+
<ol type="a">
Line</span>.</li>
+
<li>In Sheet1, select cell A1.</li>
<li class="li">In Sheet2, select cell B1.</li>
+
<li>In Sheet3, enter a Plus sign (+)  in the '''Formula InputLine'''.</li>
 +
<li>In Sheet2, select cell B1.</li>
 
</ol>
 
</ol>
 
</li>
 
</li>
 
</ul>
 
</ul>
 
</li>
 
</li>
<li class="li">In Sheet3, click the <span class="ph uicontrol">Accept</span> icon on the <span class="ph uicontrol">Formula</span> toolbar.
+
<li>In Sheet3, click the '''Accept''' icon on the '''Formula''' toolbar.</li>
You can see that the sum value of cell A1 in Sheet1 and cell B1 in
 
Sheet2 is displayed in C1.</li>
 
 
</ol>
 
</ol>
</div>
+
 
</div>
+
You can see that the sum value of cell A1 in Sheet1 and cell B1 in Sheet2 is displayed in C1.
</div>
 
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Calc]]
 
[[Category:Calc]]

Revision as of 09:31, 8 June 2026

You can reference data from other cells or sheets in the same document. The result data changes accordingly when the source data has changed.

Suppose that in a spreadsheet, you are trying to sum the values of cell A1 in Sheet1 and cell B1 in Sheet2, and put the result into cell C1 in Sheet3. To accomplish the task, do the following steps:

  1. Select cell C1 in Sheet3.
  2. On the Formula toolbar, click the Function icon S function icon.jpg.
  3. You can use either of the following ways to edit the formula.
    • Enter Sheet1.A1+Sheet2.B1 after the Equal sign (=).
    • You can also complete the formula by selecting the cells in the following way:
      1. In Sheet1, select cell A1.
      2. In Sheet3, enter a Plus sign (+) in the Formula InputLine.
      3. In Sheet2, select cell B1.
  4. In Sheet3, click the Accept icon on the Formula toolbar.

You can see that the sum value of cell A1 in Sheet1 and cell B1 in Sheet2 is displayed in C1.

Personal tools