I'm having a rounding issue with excel 2007. I'll just past whats in my cells to help explain my problem.
In C7 I have a number 14.5
in another cell I have =IF(MOD(C7,1)=0.5,MROUND(C7,2),ROUND(C7,B15-1-INT(LOG10(C7))))
If Mod(C7,1) = 0.5 , checks to see if the decimal is .5
Then MROUND(C7,2) , rounds C7 to the nearest even number
Else ROUND(C7,B15-1-INT(LOG10(C7))) , Rounds C7 to a specific significant figure.
It looks to me that its saying my IF statement is false but when I past =MOD(C7,1) into a separate cell I get 0.5. and MROUND(C7,2)= 14.
I should point out that C7 is =C6*10000, so I'm wondering if my IF statement is comming up as false because C7 is an equation. I've tested my function using a cell that was not an equation and it worked just fine.
Any help would be appreciated.
Edit: also numbers like 10.5, 11.5, 12.5 etc all round the way they should with my formula the only number not working is 14.5.
Travis
Bookmarks