- =ROUND(IF(DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"Y")<1,0,IF(AND(DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"Y")<2,DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"D")>365),(DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"D")-365)/365*5,DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"Y")-1+5))*2,)/2
- =ROUND(IF(DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"Y")<1,0,IF(DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"Y")>=2,DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"Y")-1+5,(DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"D")-365)/365*5))*2,)/2
复制代码 =ROUND(IF(DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"Y")<1,0,IF(AND(DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"Y")<2,DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"D")>365),(DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"D")-365)/365*5,DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"Y")-1+5))*2,)/2
=ROUND(IF(DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"Y")<1,0,IF(DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"Y")>=2,DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"Y")-1+5,(DATEDIF(B2,DATE(YEAR(TODAY()),12,31),"D")-365)/365*5))*2,)/2
两个公式都可以用
|