年龄计算公式技巧(第二集)
1.if(Number(Today())<=[tt],0,format(Number(Today())-[tt],"yy"))
2.if(Number([截止时间])<=[tt],"输入错误!!!",format(Number([截止时间])-[tt],"yy"))
3.if(Today()>=[出生时间],format(Number(Today())-Number([出生时间]),"yy"),"错!")
4.if(Today()>=[77],format(Number(Today())-Number([77]),"yy"),"错!")
“if(number([截止时间])>=number([出生时间]),year([截止时间])-year([出生时间])+selcase(month([截止时间])<month([出生时间]),-1,month([截止时间])>month([出生时间]),0,day([截止时间])<day([出生时间]),-1,true,0),"截止时间必须大于出生时间")”
”int(YearFrac(date(ReadBirthDay([身份证号码])),today(),1))“
请贺老师,渔斑竹斧正!!!