
Performing calculations in a table within a text document
From NeoWiki
[edit] Calculations in a table within a text document
In NeoOffice Writer, the word processing component, is possible to perform simple calculations directly inside a table, without having to insert a Calc spreadsheet as an OLE object.
In order to do this, you need to:
 Insert a table as you usually do.
 Type data in the table cells.
 Then click on the cell where you want to insert a calculation or formula.
 To insert the formula, you can either:
 Press the F2 key; or
 Type = directly inside the cell
 An area for formula entry will appear in the toolbar, just above the top of the page (like in Calc); after the = sign, type the formula you wish to use;
 Then hit the enter key
Mathematical functions that you can use for formulas can be typed directly or chosen from the list that is shown when clicking on Formula icon in the toolbar that appears (on the left of the formulatyping field).
[edit] Copying a formula to other table cells
It's possible to copy and paste a formula from one cell to other cells, keeping relative references. For example, take a table with 5 rows and 3 columns:
 In cell, A1 type 1, and in cell B1, type 2
 In cell C1, insert a formula, i.e. type =<A1>+<B1>
 You could also not type <A1> and <B1>; to insert the cell reference in a formula, after typing = or after pressing the F2 key, click on cell A1, then hit the + key, and then click on cell B1.
 To repeat the same calculation in cells C2 to C5, first click on cell C1.
 While holding down the (left) mouse button, move to cell B1 and then back to cell C1 (all of cell C1, and only that cell, will be highlighted).
 Copy as you usually do:
 By choosing Copy from the Edit menu; or
 Pressing the “Copy” icon in the Standard toolbar; or
 Pressing ⌘C.
 Now select cells C2 to C5.
 Finally, paste the clipboard contents as you usually do:
 By choosing Copy from the Edit menu; or
 Pressing the “Paste” icon in the Standard toolbar; or
 Pressing ⌘V.
[edit] Calculating with data from cells belonging to different tables
In NeoOffice Writer, it is also possible to perform calculations using data that are in different tables. To do this you have to know (or remember) that NeoOffice numbers the tables you insert in a text document in a progressive order. For example, there is a number in cell B2 of the first table, a number in cell A3 of the second table, and you want to make a calculation involving these two numbers and put the result in a cell of a third table. You can do so by following these instructions:
 Click on the cell of the table where you want the result displayed.
 Type = or press F2.
 Insert the formula; for example, for a sum, you can either:
 Type <Table1.B2>+<Table2.A3> and hit the Enter key; or
 Click on cell B2 of Table 1, type +, click on cell A3 of table 2, and hit the Enter key.
You can omit the table number before references to cells that are in the same table as the forumla; e.g., if you are inserting the formula in a cell in Table 1, you can omit "Table1" when referring to cell B2 in the above example.