In Excel: use =HYPERLINK(link_location, friendly_name) — it builds a clickable link from a formula, so the destination can be calculated rather than typed.
On this page8
Syntax
Arguments
| Argument | required / optional | Description |
|---|---|---|
link_location | required | The URL, file path or in-workbook reference, as text. |
friendly_name | optional | The text to display. Defaults to the link location itself. |
Related functions
Select the cell and type =HYPERLINK(.
Build the destination — a literal URL in quotes, or a concatenation such as "https://…/" & A2.
Add a comma and the text to display, which is usually the ID or a short label.
Press Enter and fill down; every row becomes a working link.
Need it as an auditable file?
Ships inside the linked template — formula-driven, unlocked, audit-ready.
What this does
HYPERLINK creates a working link whose destination is computed. That is the whole advantage over Insert → Link, which pastes a fixed address: a formula can assemble a URL from an ID column, so 500 rows of ticket numbers become 500 working links in one fill-down. In-workbook navigation uses a "#" prefix followed by a sheet and cell reference. Because the link is a formula result rather than stored link metadata, it survives sorting and filtering that can disturb inserted hyperlinks. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “excel hyperlink function” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected hyperlink shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a calculation you can defend to a CFO or an auditor into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
Ticket IDs in A2:A500 turned into links: =HYPERLINK("https://tracker.example.com/t/" & A2, A2). A jump to another sheet: =HYPERLINK("#Summary!A1", "Back to summary"). Opening a folder from a path column: =HYPERLINK(B2, "Open folder"). HYPERLINK turns a column of identifiers into a column of working links, which is the difference between a reference sheet and a usable one. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
In Google Sheets
If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. Here is the takeaway for “excel hyperlink function”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.
Common mistakes
- Omitting the "#" prefix for in-workbook targets, which makes Excel treat the reference as an external file and fail.
- Building a URL without encoding spaces or special characters, which produces a broken link.
- Expecting the cell to look like a normal hyperlink automatically; apply the Hyperlink cell style if the blue underline matters.
Frequently asked questions
How do I link to another sheet in the same workbook?
Prefix the reference with a hash: =HYPERLINK("#Sheet2!A1", "Go to Sheet2").
Why does my HYPERLINK not work?
Usually the destination text is malformed — a missing protocol, an unencoded space, or a missing "#" for an internal target.
What is the advantage over Insert → Link?
The destination is calculated, so a whole column of links can be built from an ID column in one fill-down and updates when the data does.