Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一个 excel 公式,它将计算距现在不到 24 小时的列中的项目()。
我有一个专栏来保存我的药物剂量,并且需要有一个字段来记录我在过去 24 小时内服用的剂量。
谢谢!
只需从 NOW() 中减去 1 即可得到 24 小时前的准确时间。所以你的公式看起来像
=COUNTIF(A2:A4,">"&NOW()-1)
请务必将 A2:A4 替换为您要计算的值的单元格范围。