你单元格A4三个条件分别是:
=IF(DAY(NOW())-A$3>=0, IF(HOUR(NOW())-HOUR(A4)>0,2,IF(HOUR(NOW())-HOUR(A4)=0,IF(MINUTE(NOW())-MINUTE(A4)>=30,2,FALSE),FALSE)),FALSE)
=IF(DAY(NOW())-A$3=0,IF(HOUR(NOW())-HOUR(A3)=0,2,FALSE),FALSE)
=IF(DAY(NOW())-A$3=0,2,FALSE)
第二个条件与第三个条件有冲突,第二个条件是第三个子条件,
第一个条件可以改成:=IF(AND(DAY(NOW())-A$3>=0,HOUR(NOW())-HOUR(A4)>0),2,IF(AND(HOUR(NOW())-HOUR(A4)=0,MINUTE(NOW())-MINUTE(A4)>=30),2,FALSE))
对于第二个条件只是想问一下:
=IF(DAY(NOW())-A$3=0,IF(HOUR(NOW())-HOUR(A3)=0,2,FALSE),FALSE)
这个红色A3是A3还是A$3
因为你没把相关条件说明不太好理解
|