Excel公历转换节气

适用于2007及以上版本。

A2输入公历日期

B2=“农历新年”&;TEXT(A2,"[$-130000]m月" &;IF( - TEXT(A2,"[$-130000]d ")& lt;11,“楚”,“)&;“d”)

C2=“农历新年”&;TEXT(A2,"[$-130000]m月" &;If (len (text (a2,"[$-130000]d ")= 1," Chu "," ")&;“d”)

D2=“农历新年”&;文本(A2,"[$-130000]m月d日")

E2=TEXT(A2,"[$-130000]e年农历" &;If (len (text (a2,"[$-130000]d ")= 1," Chu "," ")&;“d”)

F2 = text (A2,"[$-130000] YYY年农历月M " &;If (len (text (a2,"[$-130000]d ")= 1," Chu "," ")&;“d”)

以上五个公式的结果略有不同。请测试并选择您喜欢的格式。

或者A5自定义格式是-[$-130000]"农历" M "月" D "日"(或者其他格式可以参照设置)。

农历闰月会加1,比如七月会显示八月,八月会推迟到九月...而65438+二月会推迟到65438+三月。