Round time to nearest 15min interval in Excel

前端 未结 11 2355
伪装坚强ぢ
伪装坚强ぢ 2020-12-30 03:20

I\'ve an excel spreadsheet with a column which has the date and time of a particular event. I would like to round this to the nearest 15 minute interval so that I can count

11条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-30 03:26

    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

提交回复
热议问题