圆到最近

发布于 2025-02-04 06:29:23 字数 288 浏览 0 评论 0原文

我对Excel不太满意,而是尝试做一些非常简单的事情。 我有一个包含日期 +时间戳的单元格,例如:2022-05-21 23:59:55.961 但是,我想围绕它并拥有:2022-05-21 23:59:56。 (相反,我想回合2022-05-21 23:49:55.161降低到2022-05-21 23:49:55)。这个想法是摆脱毫秒并相应地围绕价值。 您知道有任何可以帮助我做到这一点的功能吗?这有点棘手,因为我在同一单元格中有时间戳,并且我给我的“ #Value?”的圆形功能,因为它不了解时间,但我需要保留它。

预先感谢您的帮助, 问候

I am not that comfortable with Excel, yet trying to do something that is quite simple.
I have a cell which contains date + timestamp, such as : 2022-05-21 23:59:55.961
However, I'd like to round it and have : 2022-05-21 23:59:56.
(On the contrary, I'd like to round 2022-05-21 23:49:55.161 down to 2022-05-21 23:49:55, for instance). The idea is to get rid of the milliseconds and round the values accordingly.
Do you know of any function that could help me do that ? It is a bit tricker because I have the timestamp in the same cell and the round function I have gives me "#VALUE?", because it does not understand the time, yet I need to keep it.

Thank you in advance for your help,
Regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文