Hyperlinks in Excel

Publication Date :

Blog Author :

Edited by :

Download FREE Hyperlinks Excel Template and Follow Along!
Hyperlinks Excel Template.xlsx

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 (FAQs)

1

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

Arrow down filled
2

How to insert multiple hyperlinks in Excel?

Arrow down filled
3

How to edit and remove a hyperlink in Excel?

Arrow down filled