Hyperlinks in Excel

Table Of Contents

arrow

Examples

Let us consider a few examples of creating hyperlinks with the HYPERLINK function of Excel.

The following image shows a list of URLs in the range B3:B6. For each URL, the corresponding on-screen name is given in the range A3:A6. Create hyperlinks that link the given names to their respective URLs.

Use the HYPERLINK function of Excel.

Example q1

The steps to create multiple hyperlinks by using the HYPERLINK function are listed as follows:

Step 1: Supply the cell references containing the “link_location” (or the URL) and the “friendly_name.” So, enter the following formula in cell C3.

“=HYPERLINK(B3,A3)”

Example 1-1

Step 2: Press the “Enter” key. A hyperlink named “Wikipedia” is created in cell C3 of the following image.

Example 1-2

Step 3: Drag the formula of cell C3 till cell C6. For this, use the fill handle displayed at the bottom-right side of cell C3.

The dragging of the fill handle and the outputs are shown in the following image. Hence, clicking any of the created hyperlinks (in C3:C6) will take the user to the respective web page.

Example 1-3

The following image shows the quantities sold (column C), prices (column D), costs (column E), predicted revenues (column G), and actual revenues (column F) for four products (A, B, C, and D) of an organization.

Further, the following information is shared:

  • All figures of columns D, E, F, and G are in US dollars. The entire dataset pertains to a specific month of the year 2018.
  • A line chart has been inserted (below the dataset) to illustrate the difference between the predicted and the actual revenues.
  • Each product has been assigned a picture whose title matches the name of the product. So, the pictures are titled A.png, B.png, C.png, and D.png. All these pictures are stored in a folder whose location has been given (in cell J12) as: file://localhost/Users/parul/Desktop/Excel functions/Hyperlinks/

Create four hyperlinks titled “Product A,” “Product B,” “Product C,” and “Product D.” Place these hyperlinks to the left of the dataset. When clicked, each hyperlink should take the user to the corresponding picture of the product.

Use the HYPERLINK function of Excel.

Example 2

The steps for creating hyperlinks with pictures as the destination are listed as follows:

Step 1: Enter the following HYPERLINK formula in cell A5.

“=HYPERLINK(($J$12&B5&".png"),"Product "&B5)”

This formula is shown in the following image.

Example 2-1

Explanation of the formula: In the preceding formula, the ampersand operator (&) is used to join the values of cells J12 (location of the pictures) and B5 (letter A) with the extension “.png.” The parentheses preceding the comma ($J$12&B5&".png") serve as the “link_location.” So, the entire “link_location” is:

file://localhost/Users/parul/Desktop/Excel functions/Hyperlinks/A.png

The argument succeeding the comma ("Product "&B5) serves as the “friendly_name.” In this argument, the word “product” is joined with the letter A (in cell B5) to form the on-screen name.

Notice that a single space has been inserted in the formula after the word “product.” This is because we want a space to separate the two strings of the on-screen name (like “Product A”). However, this space may not be visible in the formula of the preceding image.

In other words, the entire formula we entered in the preceding step is stated as follows:

“=HYPERLINK("file://localhost/Users/parul/Desktop/Excel functions/Hyperlinks/A.png","Product A")”

Had this formula been entered directly (without the beginning and ending double quotation marks), it would have worked the same way the present formula of step 1 works.

Step 2: Press the “Enter” key. A hyperlink named “Product A” is created in cell A5. This is shown in a red box in the following image.

Example 2-2

Step 3: Click the hyperlink created in the preceding step. The picture titled A.png opens. This picture had been assigned to product A.

The picture A.png is shown in the following image.

illustration 8

Step 4: Drag the formula of cell A5 till cell A8. The hyperlinks for all the products are created in this range. These are shown in the following image.

In this way, hyperlinks with pictures as the destination have been created in Excel.

Example 2-3

Frequently Asked Questions

1. Define a hyperlink and state how it can be inserted in Excel.

A hyperlink takes the user to the intended location. This intended location can be an Excel workbook, web page, bookmark in Word, file in PowerPoint, and so on. A hyperlink provides access to the supporting information with a single click.

The steps to insert a hyperlink in Excel are listed as follows:

a. Type the URL of the destination in a cell.
b. Press the “Enter” key.

Excel converts the URL to a hyperlink automatically. This is the easiest method and works when a URL is typed in the worksheet.

Note: For more techniques of creating hyperlinks, refer to the methods explained in this article.

2. How to insert multiple hyperlinks in Excel?

The steps to insert multiple hyperlinks in Excel are listed as follows:

a. List the various locations (or paths) in one column (column A) and the on-screen names in another column (column B). Ensure that one cell of column A contains one location.
b. Enter the formula “=HYPERLINK(link_location,)” in the first cell of the adjacent column (column C). Ensure that both the arguments of the HYPERLINK function are entered as cell references.
c. Press the “Enter” key.
d. Drag the formula of the first cell of column C to the remaining column. Use the fill handle for dragging downwards.

Multiple hyperlinks are created in column C. Each hyperlink is connected to the supplied location and displays the assigned on-screen name.

3. How to edit and remove a hyperlink in Excel?

The steps to edit a hyperlink are listed as follows:

a. Select the cell containing the hyperlink.
b. Right-click the selected cell and choose “edit hyperlink” from the context menu. Alternatively, press the keys “Ctrl+K” together.
c. The “edit hyperlink” dialog box opens. Make the desired changes and click “Ok.”

The hyperlink selected in the first step will be edited. The steps to remove a hyperlink are listed as follows:

a. Select the cell containing the hyperlink.
b. Right-click the selected cell and choose “remove hyperlink” from the context menu.

The hyperlink selected in the first step will be removed. As a result, the blue color of the on-screen name and the underline disappear. However, the on-screen name will remain as a text string. This name can be removed by simple deletion.

Note 1: For selecting the cell containing the hyperlink, refer to “note 1” at the end of the heading “method #1–default creation technique.”

Note 2: The given method of editing applies only to hyperlinks created by the default creation technique or the “insert hyperlink” dialog box. To edit hyperlinks created by the HYPERLINK function, modify the arguments of the function manually.