ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Conditional Hyperlink? (https://www.excelbanter.com/excel-programming/322020-conditional-hyperlink.html)

Mike

Conditional Hyperlink?
 
Hi everyone,

I posted this before but I don't think I had it right. So, will try
again.

Can you use "Hyperlink" with "IF" statement? For example, "if a1=1,
hyperlink F1 to AB10, otherwise leave F1 blank.
If so, how can this be written please?

Regards,
Mike


Dave Peterson[_5_]

Conditional Hyperlink?
 
How about a small cheat:

This formula goes in F1:

=IF(A1=1,HYPERLINK("#AB10","Click me"),"")

When I have 2 in A1 and click on F1, I go to the precedent cell (a1).

I can change that by hyperinking to the cell with the formula:

=IF(A1=1,HYPERLINK("#AB10","Click me"),HYPERLINK("#F1",""))



Mike wrote:

Hi everyone,

I posted this before but I don't think I had it right. So, will try
again.

Can you use "Hyperlink" with "IF" statement? For example, "if a1=1,
hyperlink F1 to AB10, otherwise leave F1 blank.
If so, how can this be written please?

Regards,
Mike


--

Dave Peterson


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

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