XL: MOD() Function Returns #NUM! Error Value (119083)
The information in this article applies to:
- Microsoft Excel 2000
- Microsoft Excel 2002
- Microsoft Excel 97 for Windows
This article was previously published under Q119083 For a Microsoft Excel 2001 or Microsoft Excel 98 version of this article, see 119083.
SYMPTOMS
The MOD() function in Microsoft Excel may return a #NUM! error value
instead of a valid remainder (modulus).
CAUSE
The MOD() function returns the #NUM! error if the following condition is true:
('divisor' * 134217728) is less than or equal to 'number'
WORKAROUND
If the above condition is true, and the MOD() function returns a
#NUM! error, you can use the following formula to calculate the remainder
(modulus) of two numbers:
=number-(INT(number/divisor)*divisor)
For example, instead of using this formula
use this formula:
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kbprb KB119083 |
---|
|