XL97: HYPERLINK Doesn't Work If Second Argument Returns Error (158330)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q158330 SYMPTOMS
When you click a hyperlink in a Microsoft Excel worksheet, nothing happens.
CAUSE
This will occur if both of the following conditions are true:
- The hyperlink was created by a formula containing the HYPERLINK
worksheet function.
-and-
- The second argument of the HYPERLINK function, friendly_name, equals
an error value, such as #DIV/0!, #NAME?, or #VALUE!
WORKAROUND
To prevent this problem from occurring, make sure that your HYPERLINK
worksheet function does not contain an error value for the second argument.
For example, if your formula is
=HYPERLINK("http://msnbc.com",A1/B1)
Since the expression A1/B1 can return an error value of #DIV/0! if B1 is
zero, you need to change the second argument so that it won't return an
error value. For example:
=HYPERLINK("http://msnbc.com",IF(B1=0,0,A1/B1))
After you do this, the hyperlink should work correctly.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 10/22/2000 |
---|
Keywords: | kbprb kbweb KB158330 |
---|
|