Difference between revisions of "Documentation/How Tos/Calc: ADDRESS function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(→Issues:: More on ODF formats) |
Javier Lopez (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | {{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:_CHOOSE_function | ||
+ | |ShowPrevPage=block|PrevPage=Documentation/How_Tos/Calc:_Spreadsheet_functions | ||
+ | |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%; border-style: double; border-color:#778899;">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%;">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__ | ||
== ADDRESS == | == ADDRESS == | ||
Returns a cell reference as text, given row and column numbers. | Returns a cell reference as text, given row and column numbers. |
Revision as of 18:52, 1 June 2013
CALC FUNCTIONS
- Spreadsheet FunctionsSpreadsheet Lookup functions
- AddressChooseHlookupIndexIndirectLookupMathOffsetVlookupSpreadsheet Information functions
- AreasColumnColumnsErrortypeInfoRowRowsSheetSheetsOther functions
-
Contents
ADDRESS
Returns a cell reference as text, given row and column numbers.
Syntax:
ADDRESS(row; column; mode; type; sheet)
- row is a number specifying the row.
- column is a number (not a letter) specifying the column.
- mode (an optional number) determines whether the cell address is absolute or relative. If omitted, it is assumed to be 1.
mode row column example 1 absolute absolute $A$1 2 absolute relative A$1 3 relative absolute $A1 4 relative relative A1
- type is an optional number; if 0, ADDRESS returns R1C1 notation, and otherwise (or if omitted) ADDRESS returns the usual A1 notation.
- sheet is an optional text string specifying the sheet. In the usual A1 notation, Calc separates the sheet name with a . character; in the R1C1 notation, Calc separates the sheet name with a ! character.
Example:
ADDRESS(4; 3; 2;; "Sheet2")
- returns the text Sheet2.C$4. Note the omitted type parameter.
ADDRESS(4; 3; 4)
- returns the text C4.
ADDRESS(4; 3)
- returns the text $C$4.
ADDRESS(4; 3; 2; 0; "Sheet2")
- returns the text Sheet2!R4C[3].
Issues:
- Excel represents some cell references differently to Calc, so this function is not always portable. For example ADDRESS(1;1;4;;"Sheet2") returns Sheet2.A1 in Calc; the equivalent in Excel returns Sheet2!A1.
- The type parameter is implemented from OOo3.0 - see Issue 91020.
- When storing a document in the older ODF 1.0/1.1 format, any type parameter in an ADDRESS function is stripped and not written; any subsequent read of that file may therefore produce incorrect results. From OOo 3.0, Calc writes in ODF 1.2 draft format as standard, although this can be changed (Tools->Options->Load/Save->General). A type value of 1 is allocated for any ODF 1.0/1.1 format document opened.
-