Round time to nearest 15min interval in Excel

前端 未结 11 2465
伪装坚强ぢ
伪装坚强ぢ 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:27

    simple:

    • if rounded up =CEILING(A1,"00:15")
    • if rounded down =FLOOR(A1, "00:15")

    Where A1 is the difference between the two time. It can be a reference or calculations: =CEILING(C2-B2,"00:15"), where C2 is the end time and B2 is the start time.

提交回复
热议问题