N
NOTTNICK
I have produced a spreadsheet that works brilliantly.
(basically I am separating a decimal fraction from the whole number)
However I am getting an integer problem.
The formula in cell Y7is = T7-H7
T7 has the value -0.58
H7 has the value -1.58
This means that Y7 shows the value 1.00 (Which is what I want)
However, my formula
=IF(Y7>=0,(Y7-INT(Y7)),((INT(Y7)+1)-Y7))
(in Z7)
Gives me a value of 1
It should be 0
If I put the value 1.00 in cell Y7
I get the correct value (0).
Therefore, I get 2 completely different answers from the same input
values.
The only difference is that one of them is obtained from the
subtraction of 2 negatives.
I hope this makes sense.
Any ideas?
Nick
(basically I am separating a decimal fraction from the whole number)
However I am getting an integer problem.
The formula in cell Y7is = T7-H7
T7 has the value -0.58
H7 has the value -1.58
This means that Y7 shows the value 1.00 (Which is what I want)
However, my formula
=IF(Y7>=0,(Y7-INT(Y7)),((INT(Y7)+1)-Y7))
(in Z7)
Gives me a value of 1
It should be 0
If I put the value 1.00 in cell Y7
I get the correct value (0).
Therefore, I get 2 completely different answers from the same input
values.
The only difference is that one of them is obtained from the
subtraction of 2 negatives.
I hope this makes sense.
Any ideas?
Nick