如果日期在d2单元格,那么输入以下公式,得到农历
=text(d2,"[$-130000]yyyy年mm月"&if(len(--text(d2,"[$-130000]dd"))=1,"初","")&"d")