Skip to content

How to Create Hyperlinks in Excel Formulas and Macros

If you have any spreadsheets where one sheet has some kind of list and the other sheet has some details on the items in the list, you will understand how confusing it can be navigating from one to the other. Microsoft Excel has the ability to create hyperlinks between items in two sheets?

In this article we develop a macro that creates a link between an item in a list and a corresponding worksheet.

To create the example we used two templates found in Microsoft Office Online

  • Employee Profile
  • Employee attendance tracker

We programmatically create the hyperlink from one cell to another cell so that the user can go from the attendance to the profile and back again.

How to Use the Macro

Download our example Excel file from here so you can follow along with us.

  1. In the employee profile sheet select the employee name cell.
    employee profile How to Create Hyperlinks in Excel Formulas and Macros
  2. Press Ctrl-Shift-L
  3. A link to the the employee’s attendance sheet will be created.
    profile sheets How to Create Hyperlinks in Excel Formulas and Macros
  4. In the employee’s attendance sheet a link to the employee profile sheet will be created
    Link in Employee Attendance Sheet

How it works

The main trick of this macro is in the formula to create a hyperlink:

=HYPERLINK("[File Name]'Sheet Name'! Cell Name","Friendly Name")

Here we used a handy function called ColumnLetter in order to convert the Column number into a Letter. That code was taken from here: Convert an Excel column number to its string equivalent.

Summary

By hyperlinking between related information in your spreadsheets you could improve productivity and reduce errors by quite an amount. Anything that removes the hunting and searching process will allow your users to get right to the information they need. How else might you use this macro?

About the author

Yoav Ezer is the CEO of a company that produces PDF to XLS conversion software and also co-author of the technology and productivity blog Codswallop.

For more Excel tips from Yoav, join him on Facebook or Twitter.

Popularity: 3% [?]

Related Posts

Recent Posts


  • How to Delete Duplicate Files Using Microsoft Excel
  • How to Create Hyperlinks in Excel Formulas and Macros
  • How to Use Microsoft Excel to Calculate Salary
  • Excel Formula Tips Worth Using after Today
  • Editing Excel Content in Word
  • Excel Insights Newsletter

    Don't miss an opportunity to hone your skills. I really think you will enjoy my Excel Insights Newsletter like so many already do. Best news is.. - It's still FREE to Join!

    Here are some of the past issues:

    • Why So Much Noise About Vlookup?
    • How To Be More Creative in Excel
    • 7 Excel Skills You Must Have
    • How to Waste Time in Excel...

    Enter your name and email below to receive:

    1. Password to access previous issues
    2. All upcoming issues and the best solutions to your most challenging problems.
    3. Free Download link to "The Secret Manifesto of #N/A-free VLOOKUPs"
    4. Access to our powerful community of goal and solutions oriented Excel experts.
    5. And much more!

    Post a Comment

    Your email is never published nor shared. Required fields are marked *

    Canonical URL by SEO No Duplicate WordPress Plugin