HYPERLINK in Excel (Table of Contents)
Introduction to HYPERLINK in Excel
Hyperlinks in Excel allow users to create a shortcut way to reach any certain worksheet, file, folder or webpage. It helps us to reach to any specific folder or link quickly. We also use hyperlinks to provide the reference. The hyperlinks option is there in the Insert menu option under the Links section. We just have to provide the text on which we want to have a hyperlink and then select the file or website page which we want to link with that text.
So, HYPERLINK creates a link to cells, sheets, and workbooks.
Where to Find Hyperlink Option in Excel?
In Excel hyperlink is located under Insert Tab. Go to Insert > Links > Hyperlink.
This is the rare use path. I think about 95% of the users, does not even bother to go to the Insert tab and find the Hyperlink option. They rely on the shortcut key.
The shortcut key to open the Hyperlink dialogue box is Ctrl + K.
How to Create HYPERLINK in Excel?
HYPERLINK in Excel is very simple and easy to create. Let understand how to create HYPERLINK in Excel with some Examples.
Example #1 – Create Hyperlink to Open Specific File
Ok, I will go one by one. I am creating a Hyperlink to open the workbook that I use very often when I am creating reports.
I cannot keep going back to the file folder and click to open the workbook rather I can create a hyperlink to do the job for me.
Step 1: In the active sheet press Ctrl + K. (Shortcut to open the hyperlink) This will open the below dialogue box.
Step 2: There are many things involved in this hyperlink dialogue box.
Mainly there are two tabs available here. In Tab 1, we have 4 options and in Tab 2, we have 3 options.
Step 3: Go to Existing File or Web Page. (By default when you open hyperlink it has already selected)
Step 4: Select Look in Option. Select the location of your targeted file. In my case, I have selected Desktop and in desktop Hyperlink folder.
Step 5: If you click on the specified folder it will show all the files stored in it. I have a total 2 files in it.
Step 6: Select the files that you want to open quite often. I have selected Article 1_hyperlinks file. Once the file is selected click on Ok. It will create a hyperlink.
Initially, it will create a hyperlink like this.
Step 7: Now for our understanding, we can give any name to it. I am giving the name as the file name only i.e. Sales 2018 file.
Step 8: if you click on this link, it will open up the linked file for you. In my case, it will open the Sale 2018 file that is located in the Desktop.
Example #2 – Create Hyperlink to Go to Specific Cell
Ok, now we know how to open a specific file by creating a hyperlink. We can go to the particular cell as well.
I have a product list with their quantities sold, unit price, and sales value. At the end of the data, I have a grand total for all these 3 headings.
Now if I want to keep going to Unit Sold total (B18), Unit Price Total(C18), and Sales Value (D18) total it will be a lot of irritating tasks. I can create a hyperlink to these cells.
Step 1: Create List.
Step 2: Select the first list i.e. Units Sold and press Ctrl + K. Select Place in this Document and Sheet Name.Click on the Ok button.
Step 3: It will create the hyperlink to the cell B18.
If you click on Units Sold (F2), it will take you to the cell B18.
Step 4: Now select the other two cells and follow the same procedure. Finally, your links will look like this.
Units Sold will take you to B18.
Units Price will take you to C18.
Sale Value will take you to D18.
Example #3 – Create Hyperlink to Work Sheets
As I have mentioned at the start of this article if we have 20 sheets it is very difficult to find the sheet that we wanted. By using the hyperlink option, we can create a link to those sheets and by just a click of the mouse, we can reach to the sheet that we want.
I have a total 8 sheets in this example.
Step 1: Insert one new sheet and name it has All Sheet Names.
Step 2: Write down all the sheet names.
Step 3: Select the first sheet name cell i.e. Main Data and press Ctrl + K.
Step 4: Select Place in this Document > Sheet Name.
Step 5: This will create a link to the sheet name called Main Data.
Step 6: Select every one of the sheet names and create the hyperlink.
Step 7: Finally, create a hyperlink to the sheet “All Sheet Names “and create HYPERLINK for this sheet as well. Once the hyperlink is created you can copy and paste to all the sheets so that you can come back to a hyperlinked sheet at any point of time.
Create Hyperlink through VBA Code
Creating Hyperlinks seems easy but if I have 100 sheets, it is very difficult to create a hyperlink for each one of them.
By using VBA code, we can create the entire sheet hyperlink by just click on the mouse.
Copy and paste the below code in the excel file.
Go to Excel File > Press ALT + F11 > Insert > Module > Paste
This will create a list of all the sheet names in the workbook and create hyperlinks.
Things to Remember About HYPERLINK in Excel
- We can create a hyperlink by using the HYPERLINK function.
- We can create a hyperlink to open to any file within the same computer.
- We can give any name to our hyperlink. It is not mandatory to mention the same name to the hyperlink in case of hyperlinking worksheets.
- Always use VBA code to create a hyperlink. Because whenever there is an addition to the worksheet you just have to run the code it will automatically create a hyperlink for you.
- Using hyperlink we can go to the specified cell, specified worksheet, and specified workbook as well. It will save a lot of our time.
This has been a guide to HYPERLINK in Excel. Here we discuss its uses and how to create HYPERLINK in Excel with excel examples and downloadable excel templates. You may also look at these useful functions in excel –