Forum Discussion

harcorebosch's avatar
harcorebosch
Copper Contributor
Jun 05, 2024

formula error with specific values only

I'm getting the incorrect answer when the value in F15 is 2200 and the value in G15 is 2345. Instead of returning 1.75 it rounds up an additional 15 minutes to 2.0. It only seems to do it with those ...
  • SergeiBaklan's avatar
    Jun 05, 2024

    harcorebosch 

    Looks like floating point error. This one

    =IFERROR(IF(AND(J15=FALSE,O15=FALSE),CEILING.MATH((24*TEXT(G15,"00\:00")-24*TEXT(F15, "00\:00")+24*(F15>G15)),15/60),0),0)

    works

Resources