Difference between revisions of "Documentation/How Tos/Calc: HYPERLINK function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
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:_STYLE_function | ||
+ | |ShowPrevPage=block|PrevPage=Documentation/How_Tos/Calc:_DDE_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%;">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%; border-style: double; border-color:#778899;">Hyperlink]] | ||
+ | * [[Documentation/How_Tos/Calc:_STYLE_function|<div style="font-size: 120%;">Style]] | ||
+ | }}__TOC__ | ||
== HYPERLINK == | == HYPERLINK == |
Revision as of 19:26, 1 June 2013
CALC FUNCTIONS
- Spreadsheet FunctionsSpreadsheet Lookup functions
- AddressChooseHlookupIndexIndirectLookupMathOffsetVlookupSpreadsheet Information functions
- AreasColumnColumnsErrortypeInfoRowRowsSheetSheetsOther functions
-
Contents
HYPERLINK
Sets a cell to open a hyperlink (in another application) when clicked.
Syntax:
HYPERLINK(linkaddress; celltext)
- A cell containing a HYPERLINK function will open a hyperlink when the cell is clicked.
- linkaddress is the address (as text) that is opened. celltext is the text displayed in the cell. If celltext is omitted, linkaddress is displayed in the cell.
- To edit a hyperlinked cell, select a nearby cell, and navigate to the hyperlinked cell using the keyboard arrows (if you click directly, it will open the hyperlink).
- For common, straightforward usage of HYPERLINK, see the Examples section.
- If you need a fuller explanation of the unique way in which HYPERLINK works, it follows now:
- If a cell contains a HYPERLINK function (even if the HYPERLINK function is not evaluated):
- 1. that cell becomes a hyperlinked cell; that is, if you click on it it will attempt to open a page in a browser window.
- For example, in a cell with
=IF(TRUE(); "some text"; HYPERLINK("http://www.example.com"))
the HYPERLINK function is never evaluated - but nevertheless the cell becomes a hyperlinked cell (although the link will fail - see 2. below).
- For example, in a cell with
- 2. the formula in the cell is evaluated twice.
- i) The first time, any HYPERLINK function returns linkaddress, and the result of the formula becomes the address to link to.
- ii) The second time, any HYPERLINK function returns celltext (or linkaddress if no celltext is given), and the result of the formula is displayed in the cell.
- 2. the formula in the cell is evaluated twice.
- For example,
= "h" & HYPERLINK("ttp://"; "ot ") & HYPERLINK("www.example.com"; "link")
evaluates twice. The first time "h" & "ttp://" & "www.example.com" are concatenated to form "http://www.example.com" - the address to link to. The second time "h" & "ot " & "link" are concatenated to form "hot link" - the text that appears in the cell.
- For example,
- For example,
= "h" & HYPERLINK("ttp://"; "ere is ") & HYPERLINK("www.example.com")
evaluates firstly to concatenate "h" & "ttp://" & "www.example.com", forming "http://www.example.com" - the address to link to, and secondly to concatenate "h" & "ere is " & "www.example.com", forming "here is www.example.com" - the text that appears in the cell.
- For example,
- 3. If any error is returned, the cell ceases to be a hyperlinked cell.
- The examples above illustrate how HYPERLINK works - but not how it should be used.
Example:
=HYPERLINK("http://www.example.org")
- displays http://www.example.org in the cell and opens the hyperlink http://www.example.org when clicked.
=HYPERLINK("http://www.example.org"; "Click here")
- displays Click here in the cell and opens the hyperlink http://www.example.org when clicked.
=HYPERLINK("http://www."; "Click ") & "example.org"
- displays Click example.org in the cell and opens the hyperlink http://www.example.org when clicked.
Issues:
- Text rotated through 90 degrees may not be clickable (issue 74471).
- The mouse pointer may not revert after leaving the "Format Cells" dialog (issue 74490).
-