想求个关于IF函数的公式的嵌套如果A1="12" B1=DATE(year(A1)+1,MONTH(A1),DAY(A1)) 如果A1="3" B1=DATE(YEAR(A1),MONTH(A1)+3,DAY(A1))如果A1="6" B1=DATEYEAR(A1),MONTH(A1)+6,DAY(A1))如果A1="24" B1=DATE(YEAR(A1)+2,MONTH(A1),DAY(A1))如果A
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/22 00:30:37
想求个关于IF函数的公式的嵌套如果A1="12" B1=DATE(year(A1)+1,MONTH(A1),DAY(A1)) 如果A1="3" B1=DATE(YEAR(A1),MONTH(A1)+3,DAY(A1))如果A1="6" B1=DATEYEAR(A1),MONTH(A1)+6,DAY(A1))如果A1="24" B1=DATE(YEAR(A1)+2,MONTH(A1),DAY(A1))如果A
想求个关于IF函数的公式的嵌套
如果A1="12" B1=DATE(year(A1)+1,MONTH(A1),DAY(A1))
如果A1="3" B1=DATE(YEAR(A1),MONTH(A1)+3,DAY(A1))
如果A1="6" B1=DATEYEAR(A1),MONTH(A1)+6,DAY(A1))
如果A1="24" B1=DATE(YEAR(A1)+2,MONTH(A1),DAY(A1))
如果A1="36" B1=DATE(YEAR(A1)+3,MONTH(A1),DAY(A1))
如果A1="60" B1=DATE(YEAR(A1)+5,MONTH(A1),DAY(A1))
如果A1="活期",B1=NULL
如果编辑这个函数?
想求个关于IF函数的公式的嵌套如果A1="12" B1=DATE(year(A1)+1,MONTH(A1),DAY(A1)) 如果A1="3" B1=DATE(YEAR(A1),MONTH(A1)+3,DAY(A1))如果A1="6" B1=DATEYEAR(A1),MONTH(A1)+6,DAY(A1))如果A1="24" B1=DATE(YEAR(A1)+2,MONTH(A1),DAY(A1))如果A
=if(A1=12, DATE(year(A1)+1,MONTH(A1),DAY(A1)) ,if(A1=3,DATE(YEAR(A1),MONTH(A1)+3,DAY(A1)),if(A1=6,DATE(YEAR(A1),MONTH(A1)+6,DAY(A1)),if(A1=24,DATE(YEAR(A1)+2,MONTH(A1),DAY(A1)),if(A1=36,DATE(YEAR(A1)+3,MONTH(A1),DAY(A1)),if(A1=60,DATE(YEAR(A1)+5,MONTH(A1),DAY(A1)),if(A1="活期",NULL,"")))))))
这个好像没有什么意义啊!
如果只是算当天加几个月后的日期可以考虑如下方法:
在A1做一个下拉菜单(数据-有效性-序列)
=IF(A1="活期","NULL",DATE(YEAR(TODAY()),MONTH(TODAY())+A1,DAY(TODAY())))注意:加3或6月时,有可能遇到31日会把结果推到1日.