=IF(OR(AND(L2<>"",M2="",TODAY()>L2),(AND(L2="",M2="",TODAY()>K2))), "已延期",IF(OR(AND(L2<>"",M2="",TODAY()>=L2-3),(AND(L2="",M2="",TODAY()>=K2-3))),"即将到期",IF(M2<>"","已完成","")))
你试一下。
感觉你的描述不太清楚,都有“完成时间”关键字,你说明时应该用不同的部分(“要求”、“申请”和“实际”)来描述,比较容易理解。
把公式改为:
=IF(AND(M2="",L2=""),IF(TODAY()>K2,"已延期",IF(K2-TODAY()<3,"即将到期","施工中")),IF(L2="",IF(M2>K2,"已延期","已完成"),IF(M2>L2,"已延期","已完成")))
即可
你学会了没?