Learn how to use the Excel HYPERLINK function with syntax and examples.
The Microsoft Excel HYPERLINK function creates a shortcut to a file or Internet address.
The syntax for the Microsoft Excel HYPERLINK function is:
HYPERLINK ( link, [display_name] )
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.
The HYPERLINK function can be used in the following versions of Microsoft Excel:
The HYPERLINK function can be used in Microsoft Excel as the following type of function:
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:
When a user clicks on cell A1, the Word document called "Doc1.doc" will automatically open.
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.