EXCEL的题目=IF(MOD(YEAR(TODAY()),4)=0,IF(MOD(YEAR(TODAY()),100)=0,IF(MOD(YEAR(TODAY()),400)=0,"闰年","平年"),"闰年"),"平年")这里每个if的内容是什么 太混乱了
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 18:53:49
EXCEL的题目=IF(MOD(YEAR(TODAY()),4)=0,IF(MOD(YEAR(TODAY()),100)=0,IF(MOD(YEAR(TODAY()),400)=0,"闰年","平年"),"闰年"),"平年")这里每个if的内容是什么 太混乱了
EXCEL的题目
=IF(MOD(YEAR(TODAY()),4)=0,IF(MOD(YEAR(TODAY()),100)=0,IF(MOD(YEAR(TODAY()),400)=0,"闰年","平年"),"闰年"),"平年")这里每个if的内容是什么 太混乱了
EXCEL的题目=IF(MOD(YEAR(TODAY()),4)=0,IF(MOD(YEAR(TODAY()),100)=0,IF(MOD(YEAR(TODAY()),400)=0,"闰年","平年"),"闰年"),"平年")这里每个if的内容是什么 太混乱了
先看最里面的也就是第三个IF(MOD(YEAR(TODAY()),400)=0,"闰年","平年")
表示在MOD(YEAR(TODAY()),400)=0成立的时候显示闰年,不成立显示平年.
然后看中间一层的也就是第二个IF(MOD(YEAR(TODAY()),100)=0,IF(MOD(YEAR(TODAY()),400)=0,"闰年","平年"),"闰年")
表示在MOD(YEAR(TODAY()),100)=0成立的时候,再经第一个IF判定,显示第一个IF的结果,如果不成立直接显闰年.
最后看大的IF(MOD(YEAR(TODAY()),4)=0,IF(MOD(YEAR(TODAY()),100)=0,IF(MOD(YEAR(TODAY()),400)=0,"闰年","平年"),"闰年"),"平年")
表示在MOD(YEAR(TODAY()),4)=0成立的时候经过上边第二个判定,显示其结果,如果不成立,直接显示平年.