filter - 在另一个时间之前/之后找到最近的时间
问题描述
我有一个不一定精确到指定时间的时间数据库。例如,如果我想选择 12:00 PM 并且我的列在 A 列中有时间:
[9:00 AM, 11:55 AM, 2:00 PM, 6:00 PM],
最接近的时间是 11:上午 55 点,最晚是下午 2:00。我对代码的尝试:
=MAXIF(A:A, A:A, 12:00)
=MINIF(A:A, A:A, 12:00)
但无济于事,有什么想法吗?
解决方案
推荐阅读
- excel - 如何在 VBA 公式中引用对象变量?
- c# - 将带有数字的字符串转换为字节数组 - C#
- python - 无法使用外键保存 Django 模型
- scala - 在程序中将状态单子结果从一个步骤传递到另一个步骤+提前停止
- tensorflow - 从 tfjs 加载 mobilenet 时出现等待错误
- ios - UITableViewCell 中的 UITextView 在 `textViewDidBeginEditing` 方法中第一次无法分配其委托
- javascript - 如何围绕与原点不同的实体点旋转
- python - 如何从熊猫数据框中提取每小时的第一行到新数据框
- java - 为什么数据没有插入 SQLite 数据库?(房间+rx)
- javascript - 在反应应用程序中上传图像的问题