If anyone can help me understand what Excel is doing here, I would be very grateful.
I want to create a frequency chart basically using the % of something. I have a range of values between 0.00 and 1.00.
In an adjacent column I have the formula A1 - Mod(A1, 0.1)
for most of the results it behaves as expected, for example 0.71 returns the result 0.7, 0.8 returns the result 0.8 however, the value 0.6 returns the value of 0.5.
I have checked and there is no rounding in the target cell, the absolute value is "0.6".
Office support describes the mod function in line with my expectations " [FONT="]MOD(n, d) = n - d*INT(n/d)"
[/FONT]
If I instead use the INT function as above I get the expected results.
Am I using the mod function incorrectly? what is it actually doing?
Thanks
David
I want to create a frequency chart basically using the % of something. I have a range of values between 0.00 and 1.00.
In an adjacent column I have the formula A1 - Mod(A1, 0.1)
for most of the results it behaves as expected, for example 0.71 returns the result 0.7, 0.8 returns the result 0.8 however, the value 0.6 returns the value of 0.5.
I have checked and there is no rounding in the target cell, the absolute value is "0.6".
Office support describes the mod function in line with my expectations " [FONT="]MOD(n, d) = n - d*INT(n/d)"
[/FONT]
If I instead use the INT function as above I get the expected results.
Am I using the mod function incorrectly? what is it actually doing?
Thanks
David