Good morning,
Im needing a formula to calculates time rounded down to the nearest 15 minute mark.
Ive been using the floor function, however if the time difference between departure and appointment time is, say 5 hours. The floor function calculates it as 4.75 hours.
I ran into this issue on excel and found it to be an arithmetic issue, which I corrected by taking the hours and adding 10-8: =Floor(((F2-D2)+10-8), Time(0,15,0))*24
This doesnt work on a shared Excel spreadsheet though. So how would I calculate it?
For example I want it to look like this
3:59 should be 3:45 5:00 should be 5:00
I tried Rounding it first then flooring it however that still doesnt work in a shared Excel spreadsheet
Videos
Since you said you also want the date, how about this:
= (ROUND((A1 * 1440) / 15, 0) * 15) / 1440
Assuming that A1 has the date/time value you want. This takes advantage of the fact that date/time columns in Excel are just numbers (integer portion is the date, fractional portion is the time)
If you want to round to the Nearest 15:
Assuming your time is in cell A2
We'll put our new time into B2:
B2 =TIME(HOUR(A2), ROUND((MINUTE(A2)/60)*4, 0) * 15, 0)
If you wanted to always round up or down you replace ROUND with ROUNDUP or ROUNDDOWN
Hi,
I'm using Excel 365 on Windows.
I would like to know how I can round down a datetime to the nearest minute, e.g. 07/02/2021 14:15:39 would become 07/02/2021 14:15:00.
There is a StartOfHour function, but I haven't found a corresponding "StartOfMinute" one