跳到主要内容

如何在Excel中的儒略日期和日历日期之间转换?

通常,儒略日期是一种包含5位数字的日期格式,前两位表示年份,后三位表示年份。 例如,14001表示日历中的1/1/2014。 现在,本教程将讨论Excel中儒略日期和日历日期之间的转换方法。

将儒略日期转换为日历日期

将日历日期转换为儒略日期


箭头蓝色右气泡 将儒略日期转换为日历日期

要将儒略日期转换为日历日期,只需在Excel中使用一个公式即可。

1.在空白单元格中,键入此公式 =DATE(IF(0+(LEFT(A1,2))<30,2000,1900)+LEFT(A1,2),1,RIGHT(A1,3)) 进入它,按 输入 键,如果需要,可以使用此公式将填充手柄拖动到一个范围。 看截图:
文档转换朱利安日期-1

Tips::A1表示您需要转换为日历日期的儒略日期。

2.然后右键单击这些突出显示的单元格,然后选择 单元格格式 从上下文菜单中,然后弹出 单元格格式 对话框下 联系电话 标签,点击 日期 ,在 产品分类 列表,然后在右侧部分中选择所需的日期类型。
文档转换朱利安日期-2

3。 点击 OK,那么您可以看到所有儒略日期都已转换为日历日期。
文档转换朱利安日期-3


箭头蓝色右气泡 将日历日期转换为儒略日期

如果要将日历日期转换为儒略日期,可以使用以下公式。

在空白单元格中,键入此公式 =TEXT(A1,"yy")&TEXT((A1-DATEVALUE("1/1/"&TEXT(A1,"yy"))+1),"000") 并按下 输入 键,如果需要,可以通过拖动自动填充手柄将这个公式应用于范围。
文档转换朱利安日期-4
Tips::A1是要转换为儒略日期的日历日期。


快速将非标准日期转换为标准日期格式(mm / dd / yyyy)

在某些情况下,您可能会收到带有多个非标准日期的工作清单,并将它们全部转换为标准日期格式,如mm / dd / yyyy可能会给您带来麻烦。 这里 Kutools for Excel's 转换至今 一键即可将这些非标准日期快速转换为标准日期格式。  点击即可获得 30 天的免费全功能试用!
doc转换日期
 
Kutools for Excel:拥有300多个便捷的Excel加载项,可以在30天内免费试用。

相关文章:

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (22)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
thanks Sunny the formula worked perfect...I received it over a month ago....I appreciate it....its a big help...God Bless you
This comment was minimized by the moderator on the site
Can anyone help me convert a backwards formatted Julian date code? For example 25922 is September 16th, 2022.
This comment was minimized by the moderator on the site
Hi, DT, try below formula:
=DATE(IF(0+(RIGHT(A1,2))<30,2000,1900)+RIGHT(A1,2),1,LEFT(A1,3))
then format the result as the date formatting as you need.
This comment was minimized by the moderator on the site
Sunny-
That revised formula worked perfect! thanks for your help...I appreciate it.

Tony
This comment was minimized by the moderator on the site
Sunny-
Thanks for the reply, in order to get a 4-digit number, I last digit of the year would suffice (i.e. 2022=2 or 2023=3).
If you have any other ideas on how to modify the formula let me know...and thanks again for your response.
This comment was minimized by the moderator on the site
Hi, Tony, try this formula =RIGHT(TEXT(I1,"yy")&TEXT((I1-DATEVALUE("1/1/"&TEXT(I1,"yy"))+1),"000"),4), I1 is the date you want to convert.
https://www.extendoffice.com/images/stories/comments/sun-comment/formula-julia-date-4-digit.png
This comment was minimized by the moderator on the site
Hi-
Thank you for the excel formula...that converts a Calander date to a Julian date =TEXT(A1,"yy")&TEXT((A1-DATEVALUE("1/1/"&TEXT(A1,"yy"))+1),"000")

Your formula displays 5 digits for the Julian date....I'd like to change in the formula to get 4 digits for the Julian date. What should I do to get this outcome?

Thanks

Tony
This comment was minimized by the moderator on the site
Hi, Tony, the formula TEXT(A1,"yy")&TEXT((A1-DATEVALUE("1/1/"&TEXT(A1,"yy"))+1),"000") returns a 5-digit number, first two number indicate the year, last three number indicate the nth day of the year, 5 numbers combined to indicates the date. If you just want 4-digit number, I do not know which number you want to ignore.
This comment was minimized by the moderator on the site
Good Afternoon Sunny, I am in the same boat as Tony - Where I work we use a 4 digit Julian code, not a 5 digit one. For example - 29 December, 2023 would be listed in my work systems as Julian date "3363" instead of "23363" and 26 September 2016 would be listed as Julian date "6270" instead of "16270". Would it be possible for you adjust your formula to reflect this?
This comment was minimized by the moderator on the site
Si tienes Office en español, puedes utilizar la siguiente formula =TEXTO(DE2,"AA")&TEXTO((DE2-FECHANUMERO("1/1/"& TEXTO(DE2,"AA"))+1),"000") donde DE2 es la celda donde esta tu fecha gregoriana. Saludos
This comment was minimized by the moderator on the site
Ex: 2019181
This comment was minimized by the moderator on the site
=DATE(INT(A1/1000),1,MOD(A1,1000))
This comment was minimized by the moderator on the site
=DATE(INT(A1/1000),1,MOD(A1,1000))
This comment was minimized by the moderator on the site
Can anyone help me convertig 6 digital julian date to normal date ?
This comment was minimized by the moderator on the site
Hi, there is a problem when you try to convert Julian date to calendar date with dates of 2001 thru 2009. Any suggestions? Example 1/1/2001 = JD of 01001 which is correct. However if you use the formula JD of 01001 to Calendar Date conversion the answer is 1/1/2010. Where is this error?
This comment was minimized by the moderator on the site
Tried with formulae given in the post, but not working.
Output is as something like 2017Tue
This comment was minimized by the moderator on the site
Sorry I cannot get your problem clearlly? Could you upload a screenshop of your file to me for sovling? Thank u.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations