是否有一个快捷式来完成的日期时间段标记?

问题描述 投票:0回答:1

说我有一个日期和时间的表,它是这个样子:

表由日期和时间:

enter image description here

如果我想从2019年12月4日(下午2点以后)一段时间,直到2019年12月6日下午5点,以显示他们的细胞“完成”这个词,而其他人只是说“不”。我该怎么办?

最终产品应该是这样的。

成品表:

enter image description here

excel excel-formula
1个回答
-1
投票

首先,连接日期和时间:TEXT(B$1,"mm/dd/yy ")&TEXT($A2,"hh:mm")

然后,检查它是否是两个日期之间:

AND(TEXT(B$1,"mm/dd/yy ")&TEXT($A2,"hh:mm") >= $H$2, TEXT(B$1,"mm/dd/yy ")&TEXT($A2,"hh:mm") <=$H$3)

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.