To reference the value stored in a single cell, say B1, just enter "B1" in the function argument.
Cells are reference in a format like C4, where C is the column label and 4 is the row label.
Example 1-4. Some examples of function syntax
=EXP(B1) =COS(A2) |
Cells can be referenced in the default way (relative referencing), or with absolute referening. Absolute referencing means that when the cell is copied, the cell reference doesnt change. Normally, autofill'ing a cell range or moving cell will change its cell reference to so that it maintains a relation to the original cell. With sbsolute cell referencing this behaviour is overridden.
The format to use absolute cell refencing is to use a '$' in front of the cell coordinate that the user wants to stay constant. The col, row, sheet, or any combination of these can be held constant.
Example 1-5. Absolute cell referencing examples
A1 Normal cell reference $A2 Hold the column value constant A$2 Hold the row value constant $A$2 Hold row and columns constant. |
Many functions can take multiple cells as arguments. This can either be a comma separated list, an array, or any combination thereof.
A comma separated list of cell references can be used to indicate cells that are discontinuous.
Example 1-6. Some examples of function syntax
=SUM(A1,B2,C4) =MIN(A1,B2, C4,C5,D6) |
For functions that take more than one argument, it is often easier to reference the cells as a group. This can include cells in sets horizontally, vertically, or in arrays.
The ':' operator is used to indicate a range of cells. The basic syntax is upper left corner:bottom right corner.
Example 1-7. Referencing blocks of cells
=SUM(A1:E1) =AVERAGE(B4:E7) =MIN(A1:A5) |
For referencing cells that are in non-continuous regions you can use any combination of the above methods to get the needed cells.
Example 1-8. Referencing blocks of cells
=SUM(A1:E1, B19, L14:L17) =AVERAGE(A1,A3, A5:C5) |
It is possible to reference cells which are not part of the current sheet. This is done using the NAME!CELL syntax. Where NAME is an identifier (usually a Sheet name) and CELL is a regular cell reference as described in the previous sections.
Note that if NAME contains spaces, you need to quote the whole name to allow Gnumeric to group the separate words in NAME as single name. For example, you should use "Sheet 0" when referencing the default created "Sheet 0".
Example 1-9. Referencing values in other sheets
='Sheet 0'!A1+'Sheet 3'!A5 =SUM('Sheet 1'!A1:'Sheet 1'!A5) |