Difference between revisions of "Documentation/How Tos/Calc: ROWS function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m (→See also:) |
(→Syntax:) |
||
Line 7: | Line 7: | ||
<tt>'''ROWS(range)'''</tt> | <tt>'''ROWS(range)'''</tt> | ||
− | : <tt>'''range'''</tt> is a range of cells. | + | : <tt>'''range'''</tt> is a range of cells, given either explicitly (<tt>'''A3:B5'''</tt>) or by name (<tt>'''myrangename'''</tt>) if a range name has been defined. |
=== Example: === | === Example: === |
Revision as of 17:44, 25 January 2008
ROWS
Returns the number of rows in a given range.
Syntax:
ROWS(range)
- range is a range of cells, given either explicitly (A3:B5) or by name (myrangename) if a range name has been defined.
Example:
ROWS(A3:B5)
- returns 3; there are three rows in this range, namely rows 3,4 and 5.
ROWS(G4:G6)
- returns 3; there are three rows in this range, namely rows 4,5 and 6.
ROWS(D8)
- returns 1; D8 is interpreted as a one cell range, with a single row (row 8).