Google Sheets:将日期时间单元格四舍五入到最近的 15 分钟

mem*_*ch3 6 google-sheets

是否有一个公式可以用来将日期时间单元格向上或向下舍入 (1/10/2022 15:17:02) 到最近的 15 分钟间隔?我已经尝试过 MROUND 但由于日期时间字段的格式很奇怪,我不太清楚如何让它工作。

Mik*_*arp 9

似乎对我有用,例如: https: //docs.google.com/spreadsheets/d/1Hq2pep92vmPQ8kPiThNUod7nsFZopMuOAFNcLCdkJcM/edit ?usp=sharing

用于=mround(A2,"00:15")舍入、=floor(A2,"00:15")向下舍入和=ceiling(A2,"00:15")向上舍入。

也许您忘记将最终结果格式化回日期时间本身?

此处查看更多示例:https://infoinspired.com/google-docs/spreadsheet/round-round-up-round-down-hour-month-second-in-google-sheets/