Forum Discussion
somme.si avec comme critere le temps
- Oct 11, 2020
habib_a You stumbled an a floating point error (Google for that if you want to know more about it). Excel has problems with very large and very small numbers. Enter 10 minutes by itself and display it as a number with more than 15 decimals. Then compare it with the 15 decimal number of the calculated value of 10 minutes (thus an end time minus a start time) and you will note that they are not the always the same. In your case, SUMIF missed quite a few rows with "calculated 10 minutes" were just a fraction smaller that the "clean 10 minutes". Solved that by rounding the calculated duration, as well as the criteria, to fewer decimals,. Now the SUMIF and the manual calculation give the same result. See attached.
Calculate the difference between two times
Calculate the time difference in minutes
Formula: = (B1-A1) * 1440
Number format: standard
Because: 1 day ~ 24 hours * 60 minutes = 1,440 minutes
Thank you for your patience and time.
Nikolino
I know I don't know anything (Socrates)
thank you Mr NikolinoDE for you time and information