excel中用公式把公司员工今年的农历生日转换成今年的国历日期(做提醒使用)

2022-08-09 体育 140阅读

C2=LOOKUP(--(YEAR(NOW())&TEXT(B2,"-00-00")),--TEXT("1/1"+ROW($1:$400),"[$-130000]yyyy/m/d"),"1/1"+ROW($1:$400))----农历2/29,2/30会错误    

修正:    

D2=LOOKUP(--(YEAR(NOW())&TEXT(B2-OR(B2={"0229","0230"})*2,"-00-00")),--TEXT("1/1"+ROW($1:$400),"[$-130000]yyyy/m/d"),"1/1"+ROW($1:$400))+OR(B2={"0229","0230"})*2

声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com