Section: Excel & Google Sheets

The HYPERLINK function in Excel turns a cell into a clickable link. =HYPERLINK("https://example.com/report.xlsx","Open the report") shows the words "Open the report" and opens the file when clicked. It handles web addresses, files on a network share, a specific cell in another workbook, and a named range. This guide covers the syntax, the friendly name, the difference between a link and a formula, and the behaviour that changes in Excel for the web. The examples are made up.
What HYPERLINK does
Microsoft describes the function as creating a shortcut that jumps to another location in the current workbook, or opens a document stored on a network server, an intranet or the internet. Click the cell and Excel goes to the location or opens the file. It is a formula, so the address can be built from other cells, which is the reason to use it instead of inserting a link by hand.
The syntax
=HYPERLINK(link_location, [friendly_name])
- link_location is required. It can be a URL, a file path, a UNC path on a server, or a reference to a place in a document such as a cell or a named range.
- friendly_name is optional. It is the text or value shown in the cell, displayed in blue and underlined. Leave it out and the cell shows the address itself.

Link to a web page
The simplest form takes a URL in quotes and a label: =HYPERLINK("https://example.com/report/budget.xlsx","Click for report"). Microsoft's own example uses a budget workbook on a web server, and the cell displays "Click for report". The address can also come from a cell, which is how you build a list of links from a column of file names or URLs.
Link to a file on a server or a drive
A UNC path points at a shared folder: =HYPERLINK("\\FINANCE\Statements\1stqtr.xlsx",D5) opens the workbook in the Statements share and shows whatever is in D5 as the label. A local path works the same way: =HYPERLINK("D:\FINANCE\1stqtr.xlsx",H10). Both examples are Microsoft's. These links depend on the reader having access to that path, so a link that works for you can fail for a colleague outside the network.
Link to a specific cell or named range
You can point at a place inside a workbook rather than just the file. =HYPERLINK("[https://example.com/report/budget.xlsx]Annual!F10","Go to F10") opens the workbook and jumps to cell F10 on the Annual sheet. Replace the cell reference with a named range and the same pattern jumps to that range, which is steadier than a cell address when rows move. Naming ranges well is worth the effort for this alone; our guide to named ranges covers the setup.

Build the link from cell values
Because link_location is just text, you can assemble it: =HYPERLINK("https://example.com/invoices/"&A2&".pdf","Invoice "&A2) builds a different link on every row from the invoice number in A2. That is the real advantage over Insert, Link, which produces a fixed hyperlink in one cell. A table of links built this way updates itself when the source values change, and it copies down cleanly if you lock the parts that should not move with absolute references.
Friendly names and errors
The friendly name is not just decoration. If the friendly_name expression returns an error, the cell shows the error instead of the label, which is a useful signal that something upstream is broken. If the jump location cannot be reached, Excel shows an error when the cell is clicked rather than when the formula is entered, so a broken link can sit in a sheet looking fine until someone tries it. Test a sample of links before you send the file.
Selecting a link without opening it
Clicking a HYPERLINK cell jumps. To select the cell instead, Microsoft's instruction is to click and hold the mouse button until the pointer becomes a cross, then release. In Excel for the web the pointer changes to a pointing hand over a link, and you click elsewhere in the cell to select it. Knowing this saves a lot of accidental navigation when you are editing a sheet full of links.

Excel for the web is different
Microsoft notes that in Excel for the web the HYPERLINK function is valid for web addresses only. A formula pointing at a network path or a local drive will not behave the same there, which matters if the workbook is shared with people who only use the browser version. If the links must work everywhere, keep them to https addresses.
Common problems
- The link opens the wrong file. A relative path resolved differently for the reader. Use a full URL or a UNC path.
- Nothing happens on click. The target does not exist, or the reader has no access to it.
- The cell shows the address instead of the label. The friendly_name argument is missing, or the second argument is empty.
- A broken link looks normal. That is how HYPERLINK behaves. Check a sample before you distribute the file.
- The link breaks when the file moves. Paths are literal. Prefer a web address, or keep the linked file in a fixed shared location.
- The link does not survive an export. Links can behave differently in PDFs and in copied ranges. Check the output, not just the workbook.

HYPERLINK or a normal hyperlink
If you need one fixed link, insert it from the ribbon and skip the formula. If you need many links built from data, or a label that changes with the row, use HYPERLINK. A dashboard index, a list of invoice PDFs, a set of monthly reports on a share, or a table of source documents are all cases where the formula does the work that a manual link cannot. In a table, the formula also copies down automatically, which the structured references in an Excel table make tidy.
Questions and answers
Can HYPERLINK point to another sheet in the same workbook?
Yes, link_location can refer to a place in the current workbook. Test the exact form in your version before you build a whole index on it.
Why does my link show the full address?
You left out friendly_name. Add a second argument to control the label.
Can I link to an email address?
A mailto address is a URL, so it can be used as a link_location. Test it in your mail client before you rely on it.
Does HYPERLINK work in Google Sheets?
Google Sheets has its own HYPERLINK function with a similar idea. Check Google's function page before copying a workbook.
Do links work after I convert the sheet to PDF?
Often, but not always, and it depends on how the PDF is produced. Check the exported file if the links matter.
