Solved

Understanding the syntax in =HYPERLINK() in Excel

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
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.

821 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