ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Hyperlink Woes - Please Help (https://www.excelbanter.com/excel-worksheet-functions/96341-hyperlink-woes-please-help.html)

Randy

Hyperlink Woes - Please Help
 
In sheet 1 I have a column of project numbers, a column of project names, and
a column that might contain a "Y". Per this formula:

=IF($AD4="Y",HYPERLINK("#"&CELL("contents",'Dashbo ard Data'!I22),'Dashboard
Data'!J22),HLOOKUP("PROJECT_TITLE",TrackingGantt!$ A:$Z,MATCH($J4,TrackingGantt!$B:$B,FALSE),FALSE))

if there is a "Y" in the column then the project name field needs to be a
hyperlink created from sheet 2. I there is no "Y" then the project name is
pulled from a different sheet. The formula works fine as long as I have the
cell hard coded in it but I really need it to be a lookup based on the
project number in sheet 1 matching the project number in sheet 2 and then
pulling the refernce and friendly name from the array. How can I do this?

Thanks!

Randy

Randy

Hyperlink Woes - Please Help
 
Updated information - I made changes to my formula per my example. Each
individual function works correctly but the link location part of the
hyperlink gives me an invalid error (yet each part within it works properly).
Do I have the syntax wrong or is this just not possible to do?

=IF($AD4="Y",HYPERLINK("#"&CELL("contents",VLOOKUP ($J2,'Dashboard
Data'!$A$2:$J$96,9,FALSE)),VLOOKUP($J2,'Dashboard
Data'!$A$2:$J$96,10,FALSE)),HLOOKUP("PROJECT_TITLE ",TrackingGantt!$A:$Z,MATCH($J4,TrackingGantt!$B:$ B,FALSE),FALSE))

Thanks again!


"Randy" wrote:

In sheet 1 I have a column of project numbers, a column of project names, and
a column that might contain a "Y". Per this formula:

=IF($AD4="Y",HYPERLINK("#"&CELL("contents",'Dashbo ard Data'!I22),'Dashboard
Data'!J22),HLOOKUP("PROJECT_TITLE",TrackingGantt!$ A:$Z,MATCH($J4,TrackingGantt!$B:$B,FALSE),FALSE))

if there is a "Y" in the column then the project name field needs to be a
hyperlink created from sheet 2. I there is no "Y" then the project name is
pulled from a different sheet. The formula works fine as long as I have the
cell hard coded in it but I really need it to be a lookup based on the
project number in sheet 1 matching the project number in sheet 2 and then
pulling the refernce and friendly name from the array. How can I do this?

Thanks!

Randy



All times are GMT +1. The time now is 11:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com