Hyperlink Hyperlink - Go Away

Andy Gee

New Member
Joined
Feb 26, 2002
Messages
48
Trigger happy hyperlinks

This hyperlinks if B1 is blank or not!
=IF(B1<>"",(HYPERLINK(B1,A1)),"No link")

This hyperlinks if B1 is text or not!
=IF(ISTEXT(B1),HYPERLINK(B1,A1),"No Link")

A1 = Mr Excel
B1 = http://www.mrexcel.com

Please help stop this renegade function before my head falls or explodes
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
On 2002-03-06 02:54, Andy Gee wrote:
Trigger happy hyperlinks

This hyperlinks if B1 is blank or not!
=IF(B1<>"",(HYPERLINK(B1,A1)),"No link")

This hyperlinks if B1 is text or not!
=IF(ISTEXT(B1),HYPERLINK(B1,A1),"No Link")

A1 = Mr Excel
B1 = http://www.mrexcel.com

Please help stop this renegade function before my head falls or explodes

Andy, what are you trying to do?
 
Upvote 0
Sorry, I'll explain better, my head was a bit mashed from the circular direction I taking!

I am trying to create a hyperlink in cell C1 if B1 contains text (ie. a web address).
The Text for the new hyperlink should come from cell A1

If B1 is empty I would like C1 to show "No Link" and not be a hyperlink.

Example.
A1 = Mr Excel
B1 = http://www.mrexcel.com
C1 =IF(B1<>"",(HYPERLINK(B1,A1)),"No link")

This works but if B1 is empty it is still a hyperlink and causes an error when clicked

Please help!
This message was edited by Andy Gee on 2002-03-06 06:38
 
Upvote 0
Try it, it still links to something! Some kids have to use this and they keep calling me when it reports "The address of this site is not valid... blah blah"

Please help!
 
Upvote 0
On 2002-03-06 06:53, Andy Gee wrote:
Try it, it still links to something! Some kids have to use this and they keep calling me when it reports "The address of this site is not valid... blah blah"

Please help!

You're absolutely correct and, sorry to be the bearer of bad news, nothing can be done to correct the problem. Microsoft acknowledges it is a problem, see:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q156926

Sorry I couldn't help you out :sad:

PS - would a VBA solution work for you? I'm thinking of maybe putting in code in the worksheet that will insert a hyperlink as long as there is data in cells A1 and B1. What do you think?
 
Upvote 0

Forum statistics

Threads
1,223,391
Messages
6,171,824
Members
452,426
Latest member
cmachael

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top