Round time to nearest 15min interval in Excel

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

    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)

提交回复
热议问题