Solved

Compute value for hyperlink in Excel 2007

Posted on 2012-03-19
4
177 Views
Last Modified: 2012-03-19
I know that you can use the Hyperlink function to insert a hyperlink in a cell.  What I need to know is how to make the results of another function that returns the hyperlink work in that function.  
For instance, I can lookup the URL by using the VLOOKUP function As in this example, but I am not getting something quite right (quotes, parenthesis, etc.) to make it work.
=hyperlink((=VLOOKUP([Task '#],BigTaskOrder[[#All],[Task Number]:[Travel Revenue]],58,FALSE)),"Link to Task"))
0
Comment
Question by:StevenPMoffat
[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
  • 2
  • 2
4 Comments
 
LVL 3

Expert Comment

by:Frank White
ID: 37738089
Compare with this working solution. Might help. Notice that formulas used as parameters don't take an "=" prefix.

What is "BigTaskOrder[[#All],[Task Number]:[Travel Revenue]]"? This seems to be the primary source of the problem (other than that errant "=" up there), and doesn't correspond to any syntax I usually see in an Excel Formula.

If you're trying to access the range [Task Number]:[Travel Revenue] on sheet #All of workbook BigTaskOrder, you'd use something like: "[BigTaskOrder.xls]#All![Task Number]:[Travel Revenue]"

If this is within the same workbook, well, you're needlessly complicating things. Just [Task Number]:[Travel Revenue] should work, and even better, creating a new named range for this would allow you to put only one range as the target table, which would simplify your entire formula to this:

"=HYPERLINK(VLOOKUP([Task '#],[LookupRange],58,false),"Link to Task")"
0
 

Author Comment

by:StevenPMoffat
ID: 37738402
=hyperlink((VLOOKUP([Task '#],BigTaskOrder[[#All],[Task Number]:[Travel Revenue]],58,FALSE)),"Link to Task"))

BigTaskOrder is a table in my workbook.   So the range I am trying to access is all rows from column Task Number to Travel Revenue.    

The VLOOKUP formula on its own works and returns the URL. I want it to be the link_location input to hyperlink.   I removed the "=" in front of the VLOOKUP but still doesn't work.  All I see in the cell is the complete string shown above and not the results?
0
 
LVL 3

Accepted Solution

by:
Frank White earned 100 total points
ID: 37738475
You seem to have extra parentheses mixing up the function interpreter. Try:

=hyperlink(VLOOKUP([Task '#],BigTaskOrder[[#All],[Task Number]:[Travel Revenue]],58,FALSE),"Link to Task")

If this still doesn't work, the issue is probably specific to that particular method of reference within a hyperlink call or to some obscure variable typing peculiarity with VLOOKUP's return value.
0
 

Author Closing Comment

by:StevenPMoffat
ID: 37738504
thank You
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

Outlook Free & Paid Tools
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

622 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