Difference between revisions of "Documentation/How Tos/Calc: ROW function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(→See also:) |
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
||
Line 26: | Line 26: | ||
: returns the single column array <tt>'''{5; 6; 7; 8}'''</tt>, as this <u>is</u> an array formula. If this formula is entered in cell A1, A1 will display <tt>'''5'''</tt>, A2 <tt>'''6'''</tt>, A3 <tt>'''7'''</tt> and A4 <tt>'''8'''</tt>. | : returns the single column array <tt>'''{5; 6; 7; 8}'''</tt>, as this <u>is</u> an array formula. If this formula is entered in cell A1, A1 will display <tt>'''5'''</tt>, A2 <tt>'''6'''</tt>, A3 <tt>'''7'''</tt> and A4 <tt>'''8'''</tt>. | ||
− | + | {{Documentation/SeeAlso| | |
− | + | * [[Documentation/How_Tos/Calc: COLUMN function|COLUMN]] | |
− | + | * [[Documentation/How_Tos/Calc: SHEET function|SHEET]]''' | |
− | + | * [[Documentation/How_Tos/Calc: Information functions|Information functions]] | |
− | + | * [[Documentation/How_Tos/Calc: Spreadsheet functions|Spreadsheet functions]]''' | |
− | [[Documentation/How_Tos/Calc: Functions listed alphabetically| | + | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] |
− | [[Documentation/How_Tos/Calc: Functions listed by category| | + | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} |
Revision as of 14:16, 25 February 2009
ROW
Returns the row number(s), given a reference.
Syntax:
ROW(reference)
- returns the row number of reference, where reference is a reference to a cell.
- If reference is omitted, the row number of the current cell (containing the formula) is returned.
- If reference is a range of cells and the formula is entered as an array formula (by pressing Ctrl-Shift Enter rather than Enter) a single column array of row numbers is returned.
Example:
ROW(B3)
- returns 3. Cell B3 is on the third row.
ROW()
- if entered in cell D2, returns 2. Cell D2 is on the second row.
ROW(D5:D8) (entered with the Enter key)
- returns 5. This is not an array formula, so the row number of the first cell D5 is returned.
ROW(D5:D8) (entered with Ctrl-Shift-Enter)
- returns the single column array {5; 6; 7; 8}, as this is an array formula. If this formula is entered in cell A1, A1 will display 5, A2 6, A3 7 and A4 8.