如何根据出生日期获取周岁呢,不是虚岁:没有过生日,周岁为虚岁减两岁,已过生日,为虚岁减一岁;未满一岁周岁为0岁
if(day(A2,"yyyy-MM-dd")>day(today(),"yyyy-MM-dd"),ROUNDDOWN(DATEDIF(format(A2,"yyyy-MM-dd"),TODAY(),"M")/12,0)-1,ROUNDDOWN(DATEDIF(format(A2,"yyyy-MM-dd"),TODAY(),"M")/12,0))
A2是你日期单元格
这样?
IF(DATEDIF(c2,TODAY(),"M")<12,FLOOR(DATEDIF(c2,TODAY(),"M")/12),FLOOR(DATEDIF(c2,TODAY(),"M")/12)-1)+"周岁"
其实从你描述里 是有矛盾的
将出生日期代入1995-01-14
year(datedelta("1900-01-01",datesubdate(today(),"1995-01-14","d")-1))-1900