跳到主要內容

如何將日期和時間合併到Excel中的一個單元格中?

doc將日期時間合併為1
工作表中有兩列,一個是日期,另一個是時間,如下所示,是否有任何方法可以將這兩列快速合併為一個,並保持時間格式? 現在,我介紹Excel中將日期列和時間列合併為一種並保留時間格式的兩種方法。
將日期和時間與Excel中的公式結合
將日期和時間與Kutools for Excel結合 好主意3      玩

箭頭藍色右氣泡 將日期和時間與Excel中的公式結合

有一個非常簡單的公式,可以快速幫助您將日期列和時間列合併為一個。

輸入此公式 = TEXT(A2,“ m / dd / yy”)&TEXT(B2,“ hh:mm:ss”) (A2代表日期列中的第一個數據,B2代表時間列中的第一個數據,您可以根據需要更改它們)進入空白單元格,然後按 Enter 鍵,然後拖動填充手柄以填充要使用此公式的範圍。 看截圖:
doc將日期時間合併為2

小提示: 您也可以使用此公式 = A2 + B2 然後將結果單元格格式化為日期和時間格式。


箭頭藍色右氣泡 將日期和時間與Kutools for Excel結合

使用上述公式,您可能會在編輯工作表時丟失公式結果。 現在我介紹一個 合併行,列或單元格而不會丟失數據 的效用 Excel的Kutools 您可以將數據和時間單元直接合併為一個。 如果您想嘗試新的便捷工具,可以 下載 嘗試一下。

Excel的Kutools, 與以上 300 方便的功能,使您的工作更加輕鬆。 

免費安裝 Kutools for Excel,請執行以下操作:

1.選擇要合併的日期和時間,然後單擊 庫工具 > 合併與拆分結合 行,列或單元格不丟失數據。 看截圖:
doc將日期時間合併為3

2.在彈出的對話框中,指定設置:

doc將日期時間合併為4
(1)檢查 合併欄根據以下選項合併選定的單元格 (如果您將日期和時間分為兩行,則可以 合併行),

(2)選擇一個分隔符以分隔組合數據,可以選擇 宇宙, 沒什麼 或在文本框中輸入所需的分隔符,

(3)將結果放入: 左細胞 or 右細胞,

(4)指定有關組合單元格的選項, 保留合併單元格的內容, 刪除合併單元格的內容, 合併合併的單元格

3。 點擊 Ok。 然後,您需要將單元格格式化為日期和時間格式。

保留合併單元格的內容
刪除合併單元格的內容
合併合併的單元格
doc將日期時間合併為5
doc將日期時間合併為6
doc將日期時間合併為7

備註:
該操作支持 復原.
結果單元格需要格式化為 mm / dd / yyyy hh:mm:ss 格式化為 單元格格式 對話。

小費。 如果您想免費試用 組合單元格 功能, 請免費試用Kutools for Excel 首先,然後按照上述步驟進行操作。

箭頭藍色右氣泡 將日期和時間合併到一個單元格中


輕鬆地將多個工作表/工作簿合併為一個工作表或工作簿

在Excel中,將多個工作表或工作簿組合成一個工作表或工作簿可能很麻煩,但是使用 結合 在Kutools for Excel中,您可以將數十個工作表/工作簿合併到一個工作表或工作簿中,也可以通過單擊幾下將工作表合併為一個工作表。  點選取得全功能 30 天免費試用!
合併表
 
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 (24)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Para todos aquellos que no les funciono, la forma correcta sería esta:
=TEXTO(D9,"dd/m/aaaa")+TEXTO(E9,"hh:mm:ss")
recuerden solo cambiar sus celdas y columnas
This comment was minimized by the moderator on the site
Hi, alejandro, thanks for your message. The formula in the articel works at English version but not work at Spanish version. Thanks again for you to privide a formula for Spanish readers.
This comment was minimized by the moderator on the site
Hi AllWhy do i get #Value if i try and combine Date and Time Thanks
This comment was minimized by the moderator on the site
Hi, maybe your data is in a format the formula not support. In a new sheet, enter the date and time manully and try the formula again.
This comment was minimized by the moderator on the site
hi!
my date it's fine that's normal but the hours it's like this 54054 it's mean 05:40:54, and i need combine whit my date

can you help me please?
This comment was minimized by the moderator on the site
Hi, Gaby, pnly the time string must be in 6-digit such like 054054, my formula=TEXT(F1,"m/dd/yy ")&TEXT(TIME(LEFT(G1,2),MID(G1,3,2),RIGHT(G1,2)),"hh:mm:ss") can help you. See screenshot:
This comment was minimized by the moderator on the site
i WANT DATE OF YESTERDAY AND TIME DIFFERENCE BETWEEN TWO COUNTY TOGETHER..HOW CN I GET THAT?
This comment was minimized by the moderator on the site
The article saved my job because I finished the report I work on in 5minutes but I need assistance of a formula that will return a difference between two cells with combined date and time. Example 18/2/19 08:35 and 21/2/19 08:32.
This comment was minimized by the moderator on the site
how can you combine a column with a date and another column with a code?
This comment was minimized by the moderator on the site
Sorry, Robin, your problem is not clear, could you describe it with more details or upload some screenshots? I do not know what is code?
This comment was minimized by the moderator on the site
Col A= 2-Jan-19 Col B= 3:07 PM and formal is TEXT(B4,"dd/mmm/yyyy")&TEXT(C4,"hh:mm"), and output is 01/02/1915:07... if i need the Space in between Date and Time
This comment was minimized by the moderator on the site
Use like this =TEXT(H2,"m.dd.yy")& " "&TEXT(I2,"hh:mm:ss")
This comment was minimized by the moderator on the site
(Column B) (Column C) (Column D)
(KASHIF GULZAR SHAIKH) (10-05-2018 10:36) (24381530028971)

after Marge Formula =B2&" "&C2&" "&D2
KASHIF GULZAR SHAIKH 43230.4419097222 24381530028971
This comment was minimized by the moderator on the site
B C D
KASHIF GULZAR SHAIKH 10-05-2018 10:36 24381530028971

after merge
KASHIF GULZAR SHAIKH 43230.4419097222 24381530028971
This comment was minimized by the moderator on the site
use this
=TEXT(10-05-2018,"dd:mm:yyyy")&" "&TEXT(10:36,"hh:mm")&" "&TEXT(24381530028971,"00000000000000")
This comment was minimized by the moderator on the site
This is so great, thank you!
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