ABS error

DeCaelo

New Member
Joined
Mar 17, 2011
Messages
29
=IF(ABS(F2-B2)<=TIMEVALUE("00:15"),"OK","NOT OK"))

F2 = 15/02/2011 23:30:00
B2 = 15/02/2011 23:45:00

The above formula keep showing "NOT OK" when the difference is only 00:15. What have I done wrong?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Maybe a little floating-point error. Try

=IF(ABS(F2-B2)<=TIMEVALUE("00:15.01"), "OK", "NOT OK")
 
Upvote 0
Unfortunately not :(

I changed F2 to 15/02/2011 23:29:00, so a 00:16 difference, but this shows "OK".
 
Upvote 0
Sorry:

=IF(ABS(A$1-A2) <= TIMEVALUE("0:15:0.01"), "OK", "NOT OK")

Code:
      ---------A---------- --B--- ------------------------------C-------------------------------
  1   15 Feb 2011 12:00:00                                                                      
  2   15 Feb 2011 12:14:59 OK     B2: =IF(ABS(A$1-A2) <= TIMEVALUE("0:15:0.01"), "OK", "NOT OK")
  3   15 Feb 2011 12:15:00 OK                                                                   
  4   15 Feb 2011 12:15:01 NOT OK
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,718
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top