HYPERLINK function in Google Sheets
Creates a hyperlink inside a cell.
=HYPERLINK(url, [link_label])HYPERLINK syntax and parameters
Two arguments, one required.
- urlstringRequired
The full URL of the link location enclosed in quotation marks, or a reference to a cell containing such a URL. Only certain link types are allowed. http://, https://, mailto:, aim:, ftp://, gopher://, telnet://, and news:// are permitted; others are explicitly forbidden. If another protocol is specified, link_label will be displayed in the cell, but will not be hyperlinked. If no protocol is specified, http:// is assumed, and is prepended to url.
- link_labelstringOptional
[ OPTIONAL - url by default ] - The text to display in the cell as the link, enclosed in quotation marks, or a reference to a cell containing such a label. If link_label is a reference to an empty cell, url will be displayed as a link if valid, or as plain text otherwise. If link_label is the empty string literal (""), the cell will appear empty, but the link is still accessible by clicking or moving to the cell.
HYPERLINK examples
Formulas you'll actually reuse.
A click-through link built from the order ID in column A:
=HYPERLINK("https://example.com/orders/" & A2, "Open order " & A2)A mailto link with the invoice number already in the subject line:
=HYPERLINK("mailto:" & B2 & "?subject=Invoice%20" & A2, "Email customer")
HYPERLINK in Excel
Same name — your formula ports as-is.
Try HYPERLINK in the playground
Edit the example — nothing to install.
Preloaded with the HYPERLINK formula from Example 1 — change anything and watch it respond.
Related functions
More ways Google Sheets gets this done.
- ABSReturns the absolute value of a number.MathExcel
- ACOSReturns the inverse cosine of a value, in radians.MathExcel
- ACOSHReturns the inverse hyperbolic cosine of a number.MathExcel
- ACOTReturns the inverse cotangent of a value, in radians. .MathExcel
- ACOTHReturns the inverse hyperbolic cotangent of a value, in radians. Must not be between -1 and 1, inclusive..MathExcel
- ADDRESSReturns a cell reference as a string.LookupExcel