EXCEL如何写 满月,百天,生日提醒
发布网友
发布时间:2024-10-23 04:22
我来回答
共1个回答
热心网友
时间:2024-10-23 20:05
您的百天是按实际一百天计算吗?还是按三个月+10天?
这里按100天计算
假设:A1为出生年月日,要在B1显示判断内容
颜色:1.选择B1,底纹为*;2.选择B1,条件格式,公式=OR($B$1="满月",$B$1="百天",$B$1="周岁"),格式选择底纹为红色
B1输入公式:=IF(TODAY()<DATE(YEAR(A1),MONTH(A1)+1,DAY(A1)),"离满月还有"&DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))-TODAY()&"天",IF(TODAY()=DATE(YEAR(A1),MONTH(A1)+1,DAY(A1)),"满月",IF(TODAY()-A1<100,"离百天还有"&100-TODAY()-A1&"天",IF(TODAY()-A1=100,"百天",IF(TODAY()<DATE(YEAR(A1)+1,MONTH(A1),DAY(A1)),"离周岁还有"&DATE(YEAR(A1)+1,MONTH(A1),DAY(A1))-TODAY() &"天",IF(TODAY()=DATE(YEAR(A1)+1,MONTH(A1),DAY(A1)),"周岁","超过1周岁"))))))