To reference the value stored in a single cell, B1 for example, just enter "B1" as the function argument.
Cells are referenced in a format like C4, where C is the column label and 4 is the row label.
Example 1-6. Some examples of function syntax
=EXP(B1) =COS(A2) |
Cells can be referenced in the default way (relative referencing), or by using absolute referening. Absolute referencing means that when the cell is copied, the cell reference does not change. Normally, autofilling a cell range or moving cell will change its cell reference to so that it maintains a relation to the original cell. With absolute cell referencing this, behaviour is overridden.
The format for absolute cell refencing is to use a '$' in front of the cell coordinate that the user wants to stay constant. The column, row, sheet, or any combination of these can be held constant.
Example 1-7. 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-8. 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-9. 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-10. 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-11. Referencing values in other sheets
='Sheet 0'!A1+'Sheet 3'!A5 =SUM('Sheet 1'!A1:'Sheet 1'!A5) |