跳到主要內容

如何在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)) 進入它,按 Enter 鍵,如果需要,可以使用此公式將填充手柄拖動到一個範圍。 看截圖:
文檔轉換朱利安日期-1

尖端:A1表示您需要轉換為日曆日期的儒略日期。

2.然後右鍵單擊這些突出顯示的單元格,然後選擇 單元格格式 從上下文菜單中,然後彈出 單元格格式 對話框下 聯繫電話 標籤,點擊 日期 ,在 類別 列表,然後在右側部分中選擇所需的日期類型。
文檔轉換朱利安日期-2

3。 點擊 OK,那麼您可以看到所有儒略日期都已轉換為日曆日期。
文檔轉換朱利安日期-3


箭頭藍色右氣泡 將日曆日期轉換為儒略日期

如果要將日曆日期轉換為儒略日期,可以使用以下公式。

在空白單元格中,鍵入此公式 =TEXT(A1,"yy")&TEXT((A1-DATEVALUE("1/1/"&TEXT(A1,"yy"))+1),"000") 並按下 Enter 鍵,如果需要,可以通過拖動自動填充手柄將這個公式應用於範圍。
文檔轉換朱利安日期-4
尖端:A1是要轉換為儒略日期的日曆日期。


快速將非標準日期轉換為標準日期格式(mm / dd / yyyy)

在某些情況下,您可能會收到帶有多個非標準日期的工作清單,並將它們全部轉換為標準日期格式,如mm / dd / yyyy可能對您造成麻煩。 這裡 Excel的Kutools'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選項卡為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