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.
- ENCODEURLEncodes a string of text for the purpose of using in a URL query.WebExcel
- IMPORTDATAImports data at a given url in .csv (comma-separated value) or .tsv (tab-separated value) format.WebNo Excel equivalent
- IMPORTFEEDImports a RSS or ATOM feed.WebNo Excel equivalent
- IMPORTHTMLImports data from a table or list within an HTML page.WebNo Excel equivalent
- IMPORTRANGEImports a range of cells from a specified spreadsheet.WebNo Excel equivalent
- IMPORTXMLImports data from any of various structured data types including XML, HTML, CSV, TSV, and RSS and ATOM XML feeds.WebNo Excel equivalent