Anyone able the two required formulas in row 5 & 7 in the attached?
Hours Totals & Rounding.xlsx
Clock IN's, need to be rounded UP to the nearest 15 minute interval
Clock OUT's, need to be rounded DOWN to the nearest 15 minute interval
Thanks
Anyone able the two required formulas in row 5 & 7 in the attached?
Hours Totals & Rounding.xlsx
Clock IN's, need to be rounded UP to the nearest 15 minute interval
Clock OUT's, need to be rounded DOWN to the nearest 15 minute interval
Thanks
I haven't opened your file, but:will always round down to the nearest 15 mins, andFormula:Please Login or Register to view this content.will always round up.Formula:Please Login or Register to view this content.
Hi benoj2005,
Try using below formula:-
=MROUND(I16,0.0104166666666667)
where I16 cell has the time
See attached:- Hours Totals & Rounding.xlsx
Regards,
DILIPandey
<click on below 'star' if this helps>
DILIPandey, Excel rMVP
+919810929744 (India), +971528225509 (Dubai), [email protected]
Slight amendment:
Formula:Please Login or Register to view this content.
is required if the time to be rounded down is only a few minutes after midnight.
Last edited by stunn; 07-17-2012 at 04:24 AM. Reason: cell reference was in r1c1 format
That causes the total for the day to change to #####
see here Hours Totals & Rounding.xlsx
You have 00:00-15:15, which may look fine to us humans, but for Excel it results in a negative time, which it cannot handle. To get around this, you would have to add 1 day when "Interval Out" is greater than "Interval In". i.e. when the shift goes over into the next day. Try this in C9:
Formula:Please Login or Register to view this content.
and, of course, this in C10:
Formula:Please Login or Register to view this content.
Last edited by stunn; 07-17-2012 at 04:50 AM. Reason: removing excess brackets
Thanks, that worked.
You'd think they'd have some functions for dealing with time like this.
All sorted, solution here if anyone wants for future Hours Totals & Rounding.xlsx
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks