Sample user-defined function to hide formula errors in Excel (280094)
The information in this article applies to:
- Microsoft Office Excel 2003
- Microsoft Excel 2002
- Microsoft Excel 2000
- Microsoft Excel 97 for Windows
This article was previously published under Q280094 SUMMARY
Some formulas in Microsoft Excel return error values under certain conditions. For example, when you use a division formula that multiplies a number by zero, you receive the following error value:
Using the sample formula =100/0, you can work around this behavior by hiding the error value. To do this, modify the formula as follows:
=IF(ISERROR(100/0),"",100/0)
NOTE: The preceding formula works, but with longer formulas it can become cumbersome.
With the user-defined function provided in this article, the workaround formula is as follows:
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbinfo KB280094 |
---|
|