Solved

Understanding the syntax in =HYPERLINK() in Excel

Posted on 2011-03-21
3
495 Views
Last Modified: 2012-05-11
Hello,

I am struggling with the syntax for using the function:  =HYPERLINK() in Excel (2007). In the help file, it shows the syntax for this function as:

    =HYPERLINK(link_location,friendly_name)

However, I have a hunch that my struggles have more to do with designating Excel folders, workbooks (files), worksheets (tabs), and cell references than it does with the actual syntax.  The following template has been useful in several links I have created in the past:

    =HYPERLINK("[C:\Users\UserName\Documents\UserFolder\UserFileName.xlsx]'SheetTab'!A1","CellDisplayText")

However, at other times I have not been able to get it to work. One thing that would help me immensely is if someone could explain a few of the components in this template if it is dissected.  For example, the beginning and end:

    =HYPERLINK(
and
    ,"CellDisplayText")

are straightforward and if eliminated from the help file example above, leave only the "...link_location...," in this case, represented by:

    "[C:\Users\UserName\Documents\UserFolder\UserFileName.xlsx]'SheetTab'!A1"

which can be abbreviated as:

    "[C:\...\File.xlsx]'SheetTab'!A1"
or
    "[Pathway]'SheetTab'!A1"

Now, my first question is:  What is the purpose of the quotation marks and brackets:

    "[...............]........................"

and why are they adjacent to each other in the beginning but separated (by the sheet tab and cell reference) at the end?

The next question is:  What is the purpose of the apostrophes:

    '..........'

on either side of the SheetTab?

Finally, what is the role of the exclamation mark:

    ......!......

between the sheet tab and the cell reference?  Is it a modifier for the preceding SheetTab or for the cell reference which follows?

Thanks

PS I have a more specific follow-up question but I will ask that in another thread.
0
Comment
Question by:Steve_Brady
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 33

Accepted Solution

by:
jppinto earned 250 total points
ID: 35184847
First question: brackets indicate the name of the file, the quotation marks indicate the complete string of the location of the cell that you're refering to.

Quotation marks are the name of the sheet tab on your workbook.

The exclamation mark marks the cell address reference.



0
 
LVL 85

Assisted Solution

by:Rory Archibald
Rory Archibald earned 250 total points
ID: 35184920
This is, incidentally, exactly the same syntax you use in any formula in Excel, including a straight link to a cell:
='[file path]Sheet_name'!cell_ref
0
 

Author Closing Comment

by:Steve_Brady
ID: 35420664
Thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question