I got a range of values from 1.2
, 2.2
, ... up to 16.2
. I tried to separate each value in Excel.
- In the cell A1, I put a value (
1.2
). - In the cell B1, I put formula
=FLOOR(A1,1)
to get the integer part. - In the cell C1, I put formula
=A1-B1
to get the decimal part. - In the cell D1, I put formula
=IF(C1=0.2,1,0)
to examine the decimal part. - D1 returned
1
for the values from1.2
up to7.2
, but D1 returned0
for the rest of values from8.2
up to16.2
and more.
Please tell me what is wrong?
=IF(A1=B1,1,0)
instead