-
编辑器
VS code 右下角选择VBA -
基本语法
IF:
=IF(AL15>0,IF(AM15>=TODAY(),IF(AM15=TODAY(),"最后期限",AM15-TODAY()),"已过期!"),"-")
DATE:
=DATE(YEAR(TODAY()),MONTH(TODAY())+IF(TODAY()>DATE(YEAR(TODAY()),MONTH(TODAY()),AH15),0,-1),AH15)
OR:
=IF(OR(AM25>=TODAY(),AM26>=TODAY()),"已经到期","-")
MIN:排除空格(需要ctrl+shift+enter激活)
=MIN(IF(AJ25:AL25>0,AJ25:AL25))+AI25 # AJ25:AL25的最小值(排除空格)加上AI25值
日期:
MIN:最近一天