Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Member
 
Posts: 58
Default Hyperlink function in an If function

Hello:

I'm using Excel 2003, and what I'm trying to do is use the HYPERLINK function in an IF statement so that if the value is TRUE then the HYPERLINK is active and if the value is FALSE then the HYPERLINK would be inactive. Does any one know of a way to make this work without getting the error message, "Cannot open the specified file.".

Matt
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Hyperlink function in an If function

I put this formula in B8 as a test:

=IF(A8="","",HYPERLINK("#A4","jump"))

If A8 is empty then B8 appears empty, and you can click on that cell
and stay there. But, if you put something in A8 then the word "jump"
appears in B8 and if you click on that cell now the cursor will jump
to A4. Is this the kind of thing you wanted?

Hope this helps.

Pete

On Jun 30, 10:13*pm, GoBow777
wrote:
Hello:

I'm using Excel 2003, and what I'm trying to do is use the HYPERLINK
function in an IF statement so that if the value is TRUE then the
HYPERLINK is active and if the value is FALSE then the HYPERLINK would
be inactive. Does any one know of a way to make this work without
getting the error message, "Cannot open the specified file.".

Matt

--
GoBow777


  #3   Report Post  
Member
 
Posts: 58
Default

Thanks Pete! That works just fine.

Matt

Quote:
Originally Posted by Pete_UK View Post
I put this formula in B8 as a test:

=IF(A8="","",HYPERLINK("#A4","jump"))

If A8 is empty then B8 appears empty, and you can click on that cell
and stay there. But, if you put something in A8 then the word "jump"
appears in B8 and if you click on that cell now the cursor will jump
to A4. Is this the kind of thing you wanted?

Hope this helps.

Pete

On Jun 30, 10:13*pm, GoBow777
wrote:
Hello:

I'm using Excel 2003, and what I'm trying to do is use the HYPERLINK
function in an IF statement so that if the value is TRUE then the
HYPERLINK is active and if the value is FALSE then the HYPERLINK would
be inactive. Does any one know of a way to make this work without
getting the error message, "Cannot open the specified file.".

Matt

--
GoBow777
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Hyperlink function in an If function

You're welcome, Matt - thanks for feeding back.

Pete

On Jul 1, 10:43*pm, GoBow777 wrote:
Thanks Pete! That works just fine.

Matt

  #5   Report Post  
Junior Member
 
Posts: 1
Question

Now what if I wanted some text that wasn't a hyperlink to appear if false. For example: IF(a4="G",Hyperlink("http://google.com","Google"),"No Link")

What is strange is that once there's the hyperlink function in there, even if that condition is not chose, the cell is formatted as a hyperlink.

Thanks!

PS -- the function is more complicated than above; I just simplified it down to the most basic components relevant to the issue at hand
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HYPERLINK() function Conan Kelly Excel Worksheet Functions 0 April 19th 07 10:15 PM
Can't make hyperlink function work for hyperlink to website Frank B Denman Excel Worksheet Functions 15 February 5th 07 11:01 PM
How do I create a hyperlink to a cell with the hyperlink function S. Bevins Excel Worksheet Functions 2 July 20th 06 08:06 PM
HyperLink Function JayW Excel Worksheet Functions 1 June 18th 05 11:45 AM
Intra-workbook hyperlink: macro/function to return to hyperlink ce marika1981 Excel Discussion (Misc queries) 3 May 6th 05 05:47 AM


All times are GMT +1. The time now is 07:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"