I found an oddity in using MOD just recently where it's returning 1 when it should return 0. I'll post the cell's formula for sake, but all the appropriate cells are accurate.
This is in cell Z29:
This is a simple SUM with an indirect lookup that is basically 2 cells above Z29, so B27:Z27. The result is "72250.00", without quotes (real number, not a string). The problem is that MOD(72250.00,1) returns 0, but MOD(Z29,1) returns 1. There is some phantom decimal occurring where there shouldn't be, and MOD is apparently rounding it "UP" of all things. No matter how many decimal places I show, the decimal portion of Z29 is always zero's (72250.0000000...).Please Login or Register to view this content.
Is there a way to fix this w/o forcefully using ROUND or INT prior to using MOD? And yes, this is used in other cells where using ROUND or INT would interfere with the outcome, and the data is liable to change, so I have reason for not wanting to Band-aid a broken function.
P.S. I've tested this in OpenOffice's spreadsheet and it works fine there, but I prefer to use Excel.
Bookmarks