Share this page:

MS Excel: HYPERLINK Function (WS)

Learn how to use the Excel HYPERLINK function with syntax and examples.

Description

The Microsoft Excel HYPERLINK function creates a shortcut to a file or Internet address.

Syntax

The syntax for the Microsoft Excel HYPERLINK function is:

HYPERLINK ( link, [display_name] )

Parameters or Arguments

link is a path to the file or the URL to the Internet address.

display_name is optional. It is the value that appears in the cell. If this parameter is omitted, then the link will appear in the cell.

Applies To

The HYPERLINK function can be used in the following versions of Microsoft Excel:

  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The HYPERLINK function can be used in Microsoft Excel as the following type of function:

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel HYPERLINK examples and explore how to use the HYPERLINK function as a worksheet function in Microsoft Excel:

Microsoft Excel

In our first example, we're using the HYPERLINK function to reference a file called "Doc1.doc" that can be found in the c:\test\ directory. The following formula has been entered in cell A1:

=HYPERLINK("c:\test\Doc1.doc","Test document")

When a user clicks on cell A1, the Word document called "Doc1.doc" will automatically open.

Microsoft Excel

In our second example, we're using the HYPERLINK function to reference an Internet address. The following formula has been entered in cell A1:

=HYPERLINK("http://www.techonthenet.com","Tech on the Net")

When a user clicks on cell A1, the default web browser will open to the site called www.techonthenet.com.