回覆列表
  • 1 # 使用者728583121288

    excel公曆轉農曆方法一:使用text函式A列是公曆日期,我們在B1單元格輸入公式:=TEXT(A1,"[$-130000]yyyy年m月"&IF(LEN(--TEXT(A1,"[$-130000]dd"))=1,"初","")&"d"),下拉完成公曆轉農曆。excel公曆轉農曆方法二:使用text+MID函式A列仍然是公曆,B1輸入公式:=MID("甲乙丙丁戊己庚辛壬癸",MOD(TEXT(A1,"[$-130000]e")-4,10)+1,1)&MID("子醜寅卯辰巳午未申酉戌亥",MOD(TEXT(A1,"[$-130000]e")-4,12)+1,1)&"年"&TEXT(A1,"[$-130000][DBNum1]m月d日"即可。excel公曆轉農曆方法三:使用text+MID+CHOOSE+YEAR函式A1為公曆,B1輸入:=CHOOSE(MOD(YEAR(A1)-1900,10)+1,"庚","辛","壬","癸","甲","乙","丙","丁","戊","己")&CHOOSE(MOD(YEAR(A1)-1900,12)+1,"子","醜","寅","卯","辰","巳","午","未","申","酉","戌","亥")&TEXT(A1,"[dbnum1][$-130000]年m月"&IF(--TEXT(A1,"[$-130000]d")

  • 中秋節和大豐收的關聯?
  • 老公的弟弟妹妹結婚我該去嗎?