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.
在单元格 G3 中,我想要以下内容:如果 G2 等于已完成,那么在 G3 中我希望它说已完成,但是如果 G2 为空白或有日期,我希望 G3 取 G2 中的日期并添加 30 天.(G2+30)
也许:
=IF(G2="Completed",G2,IF(OR(ISBLANK(G2),ISNUMBER(G2)),G2+30,""))
或者
=IF(G2="Completed",G2,IF(ISNUMBER(G2+0),G2+30,""))
=IF(G2="Completed",G2,IFERROR(G2+30,""))
或者,如果输入的唯一选项是日期、空白或“已完成”:
=IFERROR(G2+30,"Completed")