A1为日期,计算到现在的月数(超过15天的算1月):
=(YEAR(TODAY())-YEAR(A1))*12+IF((MONTH(TODAY())-MONTH(A1))>=0,MONTH(TODAY())-MONTH(A1),MONTH(TODAY())-MONTH(A1)-12)+IF((DAY(TODAY())-DAY(A1))>=15,1,IF((DAY(A1)-DAY(TODAY()))>=15,-1,0))
假设固定日期在A1,为2008-9-10
每天变换为当天的数值在B1,公式为=today()
计算差值的数据在C1,公式为=A1-B1,并调整格式为常规.