日期之间的条件格式

时间:2019-03-08 01:01:51

标签: excel excel-formula

我想使用以下逻辑创建条件格式设置规则:

IF (Cell A2 is between the values of A8 and A10, then fill current cell Yellow)
Where Cell A2, A8, and A10 are dates.

例如:

Cell A2 = 1/3/2019
Cell A8 = 1/1/2019
Cell A10 = 1/31/2019
The current cell should fill to yellow.

我尝试使用以下内容:

IF(A2 >=A8) + IF(A2 <= A10)

任何帮助都会很棒!

1 个答案:

答案 0 :(得分:0)

当任一条件正确时,您当前的公式求解为True。当它们都正确时,您需要一个为True的公式。

=AND(A2>=A8, A2<=A10)
相关问题