Solved

Understanding the syntax in =HYPERLINK() in Excel

Posted on 2011-03-21
3
502 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

615 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