Conditional Hyperlinks

C

csh

I have a fairly simple problem, that I cannot see a way round.

I set up two cells:

B2: FALSE
B3: http://quiz.iplac.co.uk/

I then set up another cell to contain:

=IF(B2=TRUE, HYPERLINK(B3, "CGQ Quiz"), "No hyperlink")


Obviously, the behaviour I'm looking for is that if I set B2 to TRUE m
new cell will contain a hyperlink, otherwise it will just contain plai
text.

However, Excel shows the "No hyperlink" text as a hyperlink also and i
you click on it you get a pop-up saying "The address of the site is no
valid. Check the address and try again".

I have tried this on Excel 97 and XP with the same results.

I don't want to use any macros/VBA code.

Any ideas
 
D

Dave Peterson

Maybe you could live with a partial solution:

=IF(B2=TRUE,HYPERLINK(B3,"CGQ Quiz"),
HYPERLINK("#"&CELL("address",C1),"No hyperlink"))
(one cell)

I used C1 as my formula cell. So when you click on it, you're right back where
you started.

You could even point at another cell that contains:
I SAID NO HYPERLINK!

(just to be irritating!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top