Excel 2010中将公历转成农历的方法
时间:2022-06-04 12:05:31
Excel 2010怎样将公历转为农历的方法给大家介绍一下这几乎是个大难题了,好像只能用代码来解决的,其实如果用Excel2010版就不需要这么麻烦,一个TEXT 函数就解决了:=TEXT(NOW(),"[$-130000]YYYY-M-D")
比如今天是2010年9月2日,用以下公式就可以得出农历七月二十四:
虽然在遇到闰月时,显示结果有点差强人意,如下图中,2010年2月9日的农历应是十二月二十六,但因为那年有个闰五月,就无辜多出来一个月了。不过总比编代码要快捷多了吧,而且闰月也不是天天有。
假如把公式改成:=MID("甲乙丙丁戊己庚辛壬癸",MOD(TEXT(A2,"[$-130000]e")-4,10)+1,1)&MID("子丑寅卯辰巳午未申酉戌亥",MOD(TEXT(A2,"[$-130000]e")-4,12)+1,1)&"年"&TEXT(A2,"[$-130000][DBNum1]m月")&TEXT(A2,IF(--TEXT(A2,"[$-130000]d")=10,"初十",IF(--TEXT(A2,"[$-130000]d")>10,"[$-130000][DBNum1]d","初[$-130000][DBNum1]d"))),那就更像农历表示法了,不过因为农历每年开始日期都不一样,所以函数很难达到十分精确的结果,只能是将就着用。
那就更像农历的表示法了。
标签:Excel2010,公历转农历
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
word如何合并邮件呢?
2023-06-28 15:00:25
![](https://img.aspxhome.com/file/2023/1/24131_0s.jpg)
excel2013如何隐藏sheet?excel隐藏sheet方法介绍
2023-03-22 18:35:23
![](https://img.aspxhome.com/file/2023/1/41491_0s.jpg)
Excel语音朗读表格数据 轻松完成数据检查
2022-05-28 01:23:15
![](https://img.aspxhome.com/file/2023/3/39033_0s.jpg)
excel中的高级筛选怎么用?excel高级筛选使用教程
2023-02-07 16:50:28
![](https://img.aspxhome.com/file/2023/1/42861_0s.png)
win10正式版系统怎么备份还原?超详细图文教程
2023-09-25 16:00:34
![](https://img.aspxhome.com/file/2023/2/47552_0s.png)
怎么查看Office2016是否激活?永久激活查看方法
2023-09-05 20:51:12
![](https://img.aspxhome.com/file/2023/1/15941_0s.jpg)
在Excel2010中如何设置奇偶页页眉页脚不同
2023-08-11 19:13:43
![](https://img.aspxhome.com/file/2023/5/42965_0s.jpg)
Excel2010单元格的行高和列宽怎么自动调整?
2023-02-03 10:00:37
![](https://img.aspxhome.com/file/2023/1/42231_0s.jpg)
Win10系统怎么自由截图?Win10系统自由截图方法
2023-11-23 00:15:19
![](https://img.aspxhome.com/file/2023/0/50370_0s.png)
怎样对Word表格中数据进行排序?
2022-07-17 15:14:02
![](https://img.aspxhome.com/file/2023/7/33957_0s.gif)
怎样才能正确关闭Word2003文档
2022-09-05 11:41:22
![](https://img.aspxhome.com/file/2023/8/30108_0s.jpg)
Word中如何显示页眉页脚
2022-09-16 01:31:17
![](https://img.aspxhome.com/file/2023/8/24988_0s.jpg)
Word2003 怎么来设置纸张和文档网格
2023-12-13 17:27:04
![](https://img.aspxhome.com/file/2023/5/21585_0s.jpg)
越早掌握越好!5个Word技巧解决大部分工作!
2023-05-27 12:15:49
![](https://img.aspxhome.com/file/2023/4/22464_0s.gif)
Win10升级助手无法运行怎么办?Win10升级助手无法运行解决方法
2023-12-13 21:24:30
![](https://img.aspxhome.com/file/2023/2/51722_0s.png)
在EXCEL中如何用年数总和法计算累计折旧
2022-05-28 17:55:09
![](https://img.aspxhome.com/file/2023/8/36648_0s.jpg)
Word2007文档中如何利用查找替换功能 统计词语的数量
2023-04-07 15:42:08
![](https://img.aspxhome.com/file/2023/8/29768_0s.jpg)
excel2010制作组织结构图
2023-02-04 15:57:32
![](https://img.aspxhome.com/file/2023/2/38552_0s.jpg)
word向下箭头如何去掉 向下箭头替换或删除的有效方法
2023-12-08 23:17:57
![](https://img.aspxhome.com/file/2023/5/19935_0s.jpg)
wps.exe-无法找到入口怎么回事
2023-09-13 23:06:26
![](https://img.aspxhome.com/file/2023/3/a163743_0s.png)