Skip to content

HYPERLINK

Creates a clickable link in a cell. The cell shows your friendly text, or the link itself, and the link can be built from other cells.

Syntax

=HYPERLINK(, )

Lookup and reference

Every version of Excel, including Microsoft 365, Excel 2024, 2021, 2019, 2016 and earlier, Excel for the web and the mobile apps.

Try it

Edit the formula in B2 or change the inputs. The sheet recalculates as you type.

B2
A
B
C
D
1
Order
Link
2
O-1001
Open order O-1001
3
O-1002
4
5

B2 =HYPERLINK("https://example.com/orders/"&A2,"Open order "&A2) returns Open order O-1001

How HYPERLINK works

HYPERLINK makes a cell clickable. Click it and Excel opens the web page, file, email draft or workbook location named in link_location. Its main advantage over the Insert > Link command is that the link is a formula, so it can be built from other cells and filled down a whole column.

The arguments

  • link_location is the destination. It can be a web address, a mailto: link, a file path, a network path, or a spot in the same workbook, written with a leading # such as "#Sheet2!A1".
  • friendly_name is what the cell displays. Leave it out and the cell shows the destination text. The friendly name can be text, a number, or a formula result.

The value of the cell is the friendly name (or the link text), so other formulas can read it. The link itself is carried by the formula, not stored as a separate object.

Building links from data

The strength of HYPERLINK is joining text with &:

  • =HYPERLINK("https://example.com/orders/"&A2, "Open order "&A2) creates one link per row from an order number.
  • =HYPERLINK("mailto:"&B2, "Email "&A2) opens a new email to the address in B2.
  • =HYPERLINK("mailto:"&B2&"?subject=Invoice "&A2, "Email customer") fills in the subject as well.
  • =HYPERLINK("#B"&MATCH(F1, B:B, 0), "Go to match") jumps to the cell where a value was found, when you pair it with MATCH.
  • =HYPERLINK("#'"&A2&"'!A1", A2) makes an index of sheet names that jumps to each sheet.

Linking to a place in the same workbook uses a # in front, then the sheet and cell. A sheet name with spaces needs single quotes.

Using links safely

Clicking a link to a file or web address can run outside code, so Excel may show a security notice before it opens an external link, and it may block some file types. Only build links to places you trust. If friendly_name is long, the cell may show part of it. Wrap text or widen the column.

To select a cell with a hyperlink without opening it, click and hold until the pointer changes, or click a neighbouring cell and move with the arrow keys.

Insert Link or HYPERLINK?

Insert Link (Ctrl+K) stores a fixed link and is simplest for one-off cases. HYPERLINK is better when links must be generated from a list, change with a cell, or sit inside a table that grows. The HYPERLINK cell also keeps its link when you sort or filter, because the formula travels with the row.

HYPERLINK doesn't test whether the target exists. A misspelt address still produces a clickable cell, which fails only when someone clicks it.

Arguments

link_location
Where the link goes: a web address such as "https://example.com/orders/1001", an email link such as "mailto:name@example.com", a file path, or a place in the same workbook written with a leading #, such as "#Summary!B5".
friendly_nameoptional
The text or number the cell shows, such as "Open order". If you leave it out, the cell shows link_location itself. If friendly_name is an error, the cell shows that error.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

A link built from an order number

B2 =HYPERLINK("https://example.com/orders/"&A2,"Open order "&A2)

Result: Open order O-1001

The cell shows the friendly name. Clicking it opens https://example.com/orders/O-1001. Fill the formula down for a link per row.

B2
A
B
C
D
1
Order
Link
2
O-1001
Open order O-1001
3
O-1002
4
5

B2 =HYPERLINK("https://example.com/orders/"&A2,"Open order "&A2) returns Open order O-1001

Example 2

Show the address itself when no friendly name is given

B2 =HYPERLINK("https://example.com/"&A2)

Result: https://example.com/pricing

With one argument the cell displays the destination text, so the user can see where the link goes.

B2
A
B
C
D
1
Page
Link
2
pricing
https://example.com/pricing
3
4

B2 =HYPERLINK("https://example.com/"&A2) returns https://example.com/pricing

Example 3

An email link with the contact's address

C2 =HYPERLINK("mailto:"&B2&"?subject=Ticket "&A2,"Email owner")

Result: Email owner

Clicking opens a new email to the owner with the ticket number in the subject line. The cell value is the friendly name.

C2
A
B
C
D
1
Ticket
Owner email
Action
2
T-4410
ops-desk@example.com
Email owner
3
4
5

C2 =HYPERLINK("mailto:"&B2&"?subject=Ticket "&A2,"Email owner") returns Email owner

Example 4

Jump to a cell in the same workbook

D2 =HYPERLINK("#B12","Go to the total")

Result: Go to the total

A link location that begins with # points inside the workbook. Add the sheet name for another sheet, such as "#Summary!B12".

D2
A
B
C
D
1
Month
Total
Shortcut
2
Jan
410
Go to the total
3
Feb
385
4
Mar
462
5
6
7
8
9
10
11
12
Grand total
1257

D2 =HYPERLINK("#B12","Go to the total") returns Go to the total

Your turn.

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In C2, build a link to https://tickets.example.com/ followed by the ticket number in A2. The cell should show the text Ticket followed by the ticket number. Fill down to C4.

Answer in C2, then it fills down to C4.

C2
A
B
C
D
E
1
Ticket
Owner email
Ticket link
Email link
2
T-1001
ops-desk@example.com
3
T-1002
billing@example.com
4
T-1003
ops-desk@example.com
5
6
7
8

Common mistakes

  • HYPERLINK doesn't check that the target exists. A misspelt address still looks like a working link and fails only when clicked.
  • A link to another place in the same workbook needs the leading #. Without it Excel looks for a file with that name.
  • Sheet names with spaces must be in single quotes inside the link, such as "#'Q1 Summary'!A1".
  • Clicking a hyperlink cell opens the link. To select or edit the cell instead, click and hold until the pointer changes, or move to it with the arrow keys.
  • If friendly_name returns an error, the cell shows that error instead of the link text.

Questions people ask

What is the difference between HYPERLINK and Insert Link?

Insert Link stores a fixed link on a cell. HYPERLINK is a formula, so the link can be built from other cells and filled down a list, and it follows the row when you sort or filter.

How do I link to another sheet with HYPERLINK?

Start the link with # and give the sheet and cell: `=HYPERLINK("#Summary!B5", "Go to summary")`. If the sheet name has spaces, wrap it in single quotes: `"#'Q1 Summary'!B5"`.

How do I select a HYPERLINK cell without opening the link?

Click and hold on the cell until the pointer changes from a hand to a cross, then release. Alternatively, click a neighbouring cell and move onto it with the arrow keys.

Can HYPERLINK open a file or folder?

Yes. Give a file path or network path as link_location, such as `"C:\Reports\2025"`. Excel may show a security notice before it opens an external file.

Learn HYPERLINK in a real sheet.

Tracks take you from the basics to modelling, one graded exercise at a time.