Difference between revisions of "Documentation/How Tos/Calc: ROWS function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(included 'use with multiple ranges')
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{Documentation/MasterTOC
 +
|bookid=1234'''
 +
|booktitle=<div style="padding: 8px; font-size: 140%; font-weight: bold; background-color: #9BC0F5;">CALC FUNCTIONS</div>
 +
|ShowParttitle=block|parttitle=[[Documentation/How_Tos/Calc:_Spreadsheet_functions|<div style="font-size: 140%;">Spreadsheet Functions]]
 +
|ShowNextPage=block|NextPage=Documentation/How_Tos/Calc:_SHEET_function
 +
|ShowPrevPage=block|PrevPage=Documentation/How_Tos/Calc:_ROW_function
 +
|ShowPrevPart=block|PrevPart=Documentation/How_Tos/Calc:_Number_Conversion_functions
 +
|ShowNextPart=block|NextPart=Documentation/How_Tos/Calc:_Statistical_functions
 +
|toccontent= <div style="padding: 4px; font-size: 130%; font-weight: hidden; background-color:#DCE9FC;">FUNCTIONS</div>
 +
 
 +
<div style="font-size: 140%; border-style: outset outset outset none; border-color:#DCE9FC;">Spreadsheet Lookup functions</div>
 +
* [[Documentation/How_Tos/Calc:_ADDRESS_function|<div style="font-size: 120%;">Address]]
 +
* [[Documentation/How_Tos/Calc:_CHOOSE_function|<div style="font-size: 120%;">Choose]]
 +
* [[Documentation/How_Tos/Calc:_HLOOKUP_function|<div style="font-size: 120%;">Hlookup]]
 +
* [[Documentation/How_Tos/Calc:_INDEX_function|<div style="font-size: 120%;">Index]]
 +
* [[Documentation/How_Tos/Calc:_INDIRECT_function|<div style="font-size: 120%;">Indirect]]
 +
* [[Documentation/How_Tos/Calc:_LOOKUP_function|<div style="font-size: 120%;">Lookup]]
 +
* [[Documentation/How_Tos/Calc:_MATCH_function|<div style="font-size: 120%;">Math]]
 +
* [[Documentation/How_Tos/Calc:_OFFSET_function|<div style="font-size: 120%;">Offset]]
 +
* [[Documentation/How_Tos/Calc:_VLOOKUP_function|<div style="font-size: 120%;">Vlookup]]
 +
 
 +
<div style="font-size: 140%; border-style: outset outset outset none; border-color:#DCE9FC;">Spreadsheet Information functions</div>
 +
* [[Documentation/How_Tos/Calc:_AREAS_function|<div style="font-size: 120%;">Areas]]
 +
* [[Documentation/How_Tos/Calc:_COLUMN_function|<div style="font-size: 120%;">Column]]
 +
* [[Documentation/How_Tos/Calc:_COLUMNS_function|<div style="font-size: 120%;">Columns]]
 +
* [[Documentation/How_Tos/Calc:_ERRORTYPE_function|<div style="font-size: 120%;">Errortype]]
 +
* [[Documentation/How_Tos/Calc:_INFO_function|<div style="font-size: 120%;">Info]]
 +
* [[Documentation/How_Tos/Calc:_ROW_function|<div style="font-size: 120%;">Row]]
 +
* [[Documentation/How_Tos/Calc:_ROWS_function|<div style="font-size: 120%; border-style: double; border-color:#778899;">Rows]]
 +
* [[Documentation/How_Tos/Calc:_SHEET_function|<div style="font-size: 120%;">Sheet]]
 +
* [[Documentation/How_Tos/Calc:_SHEETS_function|<div style="font-size: 120%;">Sheets]]
 +
 
 +
<div style="font-size: 140%; border-style: outset outset outset none; border-color:#DCE9FC;">Other functions</div>
 +
* [[Documentation/How_Tos/Calc:_DDE_function|<div style="font-size: 120%;">Dde]]
 +
* [[Documentation/How_Tos/Calc:_HYPERLINK_function|<div style="font-size: 120%;">Hyperlink]]
 +
* [[Documentation/How_Tos/Calc:_STYLE_function|<div style="font-size: 120%;">Style]]
 +
}}__TOC__
  
 
== ROWS  ==
 
== ROWS  ==
Line 24: Line 60:
 
: where <tt>'''myref'''</tt> has been defined as the multiple range <tt>'''$A$1:$A$3;$C$1:$C$4'''</tt>, returns <tt>'''7'''</tt>;  
 
: where <tt>'''myref'''</tt> has been defined as the multiple range <tt>'''$A$1:$A$3;$C$1:$C$4'''</tt>, returns <tt>'''7'''</tt>;  
  
=== See also: ===
+
{{SeeAlso|EN|
'''[[Documentation/How_Tos/Calc: COLUMNS function|COLUMNS]]''',
+
* [[Documentation/How_Tos/Calc: COLUMNS function|COLUMNS]]
'''[[Documentation/How_Tos/Calc: SHEETS function|SHEETS]]''',
+
* [[Documentation/How_Tos/Calc: SHEETS function|SHEETS]]
'''[[Documentation/How_Tos/Calc: AREAS function|AREAS]]'''
+
* [[Documentation/How_Tos/Calc: AREAS function|AREAS]]
 +
 
 +
* [[Documentation/How_Tos/Calc: Information functions|Information functions]]
 +
* [[Documentation/How_Tos/Calc: Spreadsheet functions|Spreadsheet functions]]
  
'''[[Documentation/How_Tos/Calc: Information functions|Information functions]]''',
+
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
'''[[Documentation/How_Tos/Calc: Spreadsheet functions|Spreadsheet functions]]'''
+
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 +
[[Category: Documentation/Reference/Calc/Spreadsheet functions]]

Latest revision as of 07:48, 17 July 2018

CALC FUNCTIONS
FUNCTIONS
Spreadsheet Lookup functions
Spreadsheet Information functions
Other functions


ROWS

Returns the number of rows in a given reference.

Syntax:

ROWS(reference)

reference may be given either explicitly (eg A3:B5) or by name (eg myref).
It is possible to define a name to represent more than one range (eg by entering $A$1:$A$3;$C$1:$C$4 in the Assigned To box of the Insert - Names - Define... dialog). In this case ROWS sums the number of rows in each range, irrespective of any duplication of rows.

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).

ROWS(myref)

where myref has been defined as the multiple range $A$1:$A$3;$C$1:$C$4, returns 7;



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_ROWS_function&oldid=243403"
Views
Personal tools
Navigation
Print/export
Tools