I just tested with =COUNTIF('Day 1 - EEA'!D9:D32,">0.017361111")
If that's what you meant then it doesn't appear to work either.
I just tested one cell with my original formula. If the cells (B9 and
C9) show 16:01 & 16:26, the answer is 0:25 but the formula counts it.
But if the cells (B9 and C9) show 13:01 and 13:26, the answer is
still 0:25 but the formula doesn't count it...
If I use your formula it counts both.
I hope I just didn't alter it right as I don't understand what's going
wrong.
Peo Sjoblom - 01 Nov 2007 15:40 GMT
The reason is here
http://www.cpearson.com/excel/rounding.htm
it's not a bug, it's the way computers do calculations
You could round down the values to the nearest minute if you never use
seconds in your calculations
=FLOOR(C9-B9,TIME(,1,))
if you use seconds then round to the nearest minute
=ROUND((C9-B9)/TIME(,1,),0)*TIME(,1,)
Then the count will work

Signature
Regards,
Peo Sjoblom
>I just tested with =COUNTIF('Day 1 - EEA'!D9:D32,">0.017361111")
>
[quoted text clipped - 10 lines]
> I hope I just didn't alter it right as I don't understand what's going
> wrong.
AndyR - 01 Nov 2007 16:10 GMT
You're a legend. Thank you very much!
Rick Rothstein (MVP - VB) - 01 Nov 2007 16:06 GMT
What happens if you let Excel handle the fractions for you? Give this a
try...
=COUNTIF('Day 1 - EEA'!D9:D32,">"&TIME(0,25,0))
Rick
>I just tested with =COUNTIF('Day 1 - EEA'!D9:D32,">0.017361111")
>
[quoted text clipped - 10 lines]
> I hope I just didn't alter it right as I don't understand what's going
> wrong.