FatalLordes
Board Regular
- Joined
- Dec 22, 2017
- Messages
- 76
- Office Version
- 365
- Platform
- Windows
Ok, I'm no Excel expert - very basic but I use google to work out things and I generally work things out myself. But I'm stumped on this formula which uses IF statement and ABS for tolerance:
=IF(ABS(B7-B4)<=0.05,"OK",IF(B7>B4,"Over",IF(B7<B4,"Under")))
Both B7 and B4 are currency cells (formatted $0.00). I'm trying to have a tolerance of 0.05. Assuming B4 is $41.66, it works saying "Ok" if B7 is $41.61, or says "Under" if B7 is $41.60 BUT it fails if B7 is $41.71 because it says "Over" when it should say "Ok" as within the +/- $0.05c range. If B7 is $41.70 it works and says "Ok", however, but not when $41.71?? Why is this? And how do I fix it?
=IF(ABS(B7-B4)<=0.05,"OK",IF(B7>B4,"Over",IF(B7<B4,"Under")))
Both B7 and B4 are currency cells (formatted $0.00). I'm trying to have a tolerance of 0.05. Assuming B4 is $41.66, it works saying "Ok" if B7 is $41.61, or says "Under" if B7 is $41.60 BUT it fails if B7 is $41.71 because it says "Over" when it should say "Ok" as within the +/- $0.05c range. If B7 is $41.70 it works and says "Ok", however, but not when $41.71?? Why is this? And how do I fix it?