Hyperlink Excel Function

Last Updated :

-

Blog Author :

Edited by :

Reviewed by :

Table Of Contents

arrow

Examples

Let us consider a few examples to understand the working of the HYPERLINK function in Excel.

To send an email using a hyperlink, follow the listed steps:

  1. Open the HYPERLINK function by typing =HYPERLINK in Excel.
  2. Prefix “mailto:” (within double quotation marks) to an email address. Use the ampersand operator to join this prefix and the cell containing the email address. This serves as the “link_location” argument.
  3. Close the parentheses and press the “Enter” key.

The HYPERLINK formula is displayed in cell C2 of the following image.

Hyperlink EXAMPLE 1-2

Result of the HYPERLINK formula: The prefix along with the entire address (mailto:sumit@e2esols.com) will be displayed as a hyperlink. Since the “friendly_name” argument has been omitted in the HYPERLINK formula, the “link_location” is used as the jump text.

Clicking the created hyperlink will open the “compose” page of the default email account. The given email address will be automatically entered in the “To” field. This field contains the email address of one or more recipients.

Likewise, the HYPERLINK formula has been applied to cells C3 and C4. The outputs of the HYPERLINK formulas are displayed in these cells. Notice that the “friendly_name” has been omitted for the hyperlinks of these cells as well.

Note: “Mailto” links are used in HTML to send emails from the default mail client of the user. The address mentioned in the “mailto” link is considered to belong to the intended recipient.

To switch to a different worksheet within the same workbook via a hyperlink, follow the listed steps:

  1. Open the HYPERLINK function by typing =HYPERLINK in Excel.
  2. Prefix the hash (#), followed by the name of the worksheet, the exclamation mark (!), and the cell reference of the intended location. This serves as the “link_location” argument.
  3. Enter the jump text enclosed within double quotation marks.
  4. Close the parentheses and press the “Enter” key.

The HYPERLINK formula is displayed in cell C5 of the following image.

Hyperlink EXAMPLE 1-3

Result of the HYPERLINK formula: A hyperlink with jump text “to Example1” will be created. Clicking this hyperlink will take the user to cell A1 of the worksheet “Example1.” In this way, one can move within a workbook through hyperlinks.

Likewise, the hyperlinks of cells C6 and C7 will take the user to the intended locations given in cells B6 and B7 respectively.

Therefore, hyperlinks can be used to link the table of contents of a workbook to the different areas of worksheets.

Alternate Method to Switch Between the Worksheets

This section lists the alternative steps to the preceding method. The steps to switch to a different worksheet (within the same workbook) by using a hyperlink are listed as follows:

  1. Type the jump text in a cell. Next, select this cell.
  2. Click the “hyperlink” option from the “links” group of the Insert tab.
  3. The “insert hyperlink” dialog box opens. Under “link to” displayed on the left side, select “place in this document.”
  4. In “text to display,” Excel automatically displays the selected jump text. In “type the cell reference,” enter the cell reference of the intended location.
  5. Under “or select a place in this document,” choose the worksheet where the user would be taken.
  6. Click “Ok.”

The “insert hyperlink” dialog box is shown in the following image. In this case, clicking the jump text “Sheet Example1,” will take the user to cell A1 of worksheet “Example3.”

Hyperlink EXAMPLE 1-4

To open a file through a hyperlink, follow the listed steps:

  1. Open the HYPERLINK function by typing =HYPERLINK in Excel.
  2. Enter the reference to a cell containing the full path of the file. The path should include the location, name, and extension (like .docx, .xlsx, .pptx, and so on) of the file. This serves as the “link_location” argument.
  3. Enter the jump text enclosed within double quotation marks.
  4. Close the parentheses and press the “Enter” key.

The HYPERLINK formula is displayed in cell C3 of the following image.

Hyperlink EXAMPLE 1-5

Result of the HYPERLINK formula: A hyperlink with jump text “NVP Function” is created. Clicking this hyperlink opens the file titled “NPV function.” This file is currently stored on the desktop of the user.

Likewise, the hyperlink of cell C4 opens an image having the “.jpg” extension. The hyperlink of cell C5 opens a Word document titled “top advanced excel formulas and functions.”

Frequently Asked Questions

1. Define the HYPERLINK function of Excel with the help of an example.

The HYPERLINK function helps create hyperlinks in Excel. When such a hyperlink is clicked, it takes the user to a different web page, document, bookmark, workbook, and so on. By creating a hyperlink in a worksheet, the end-user is given access to an additional source of data.

For example, the formula =HYPERLINK(“http://www.123.com/”,123) creates a hyperlink named 123. When this link is clicked, the stated website (www.123.com) opens.

Note: For more details on the usage of the HYPERLINK function, refer to the examples of this article.

2. How to use the HYPERLINK function in Excel?

The HYPERLINK function of Excel can be used by following the listed steps:
a. Open the HYPERLINK formula by typing =HYPERLINK in Excel.
b. Enter the path of the destination. This is the place where the user would be taken on clicking the hyperlink.
c. Enter the name of the hyperlink, which will be displayed to the user. If the name is not entered, the path will be displayed as the name.
d. Close the parentheses and press the “Enter” key.

Note: For more details on the arguments of the HYPERLINK excel formula, refer to its syntax given in this article.

3. Where is the “hyperlink” button and how is it used to add a hyperlink in Excel?

The “hyperlink” button is in the “links” group of the Insert tab. It is used to add a hyperlink to a blank cell, cell containing a string (whether textual or numerical) or cell containing an image.

For inserting a hyperlink using the “hyperlink” button, follow the listed steps:
a. Select the cell or image on which a hyperlink needs to be created.
b. Click the “hyperlink” button from the Insert tab or the “hyperlink” option from the context menu. The context menu appears when the selected cell or image is right-clicked.
c. The “insert hyperlink” dialog box opens. Enter a name for the hyperlink in the “text to display” box.
d. Enter the address in the address box. This address is the URL of a web page.
e. Click “Ok.”

A hyperlink is created using the “hyperlink” button of Excel. In case, an image was selected in pointer “a,” it becomes clickable.

Note: While creating this hyperlink, let the default selections of Excel (“existing file or web page” under “link to” and “current folder” under “look in”) stay in place. The other options under “link to” can also be used depending on the kind of destination.