跳到主要內容

如何在Excel中將文本和日期快速合併到同一單元格中?

假設您有兩列,其中一列包含文本字符串,另一列填充了日期,現在,您想將這兩列合併以獲得以下屏幕快照結果。 我們大多數人可能直接將兩列連接起來,但是日期將顯示為整數。 本文,我將介紹一些有效的方法來將文本和日期正確組合到Excel中的一個單元格中。

doc合併文字日期1

使用公式將文本和日期合併到一個單元格中

使用Kutools for Excel將文本和日期合併到一個單元格中


以下公式可以幫助您將文本列和日期列合併為一個,請執行以下操作:

1。 輸入此公式 = A2&“”&TEXT(B2,“ mm / dd / yyyy”) 除數據之外,將其插入空白單元格,請參見屏幕截圖:

doc合併文字日期2

2。 然後將填充手柄向下拖動到單元格以應用此公式,您會看到,文本和日期已合併到一個單元格中。

doc合併文字日期3

筆記:

1.除了上述公式外,這裡還有另一個公式也可以為您提供幫助: = CONCATENATE(A2,“”,TEXT(B2,“ mm / dd / yyyy”)),請選擇一個您喜歡的。

2.如您所見,我在文本和日期之間加上一個空格,如果您想將文本和日期與其他標點符號分開,則可以根據需要在雙引號之間鍵入標點符號。 例如,將文本和日期用破折號組合起來:= A2&“-”&TEXT(B2,“ mm / dd / yyyy”).

3.如果有日期和日期列需要合併,請應用以下任何公式:

= TEXT(A2,“ mm / dd / yyyy”)&“-”&TEXT(B2,“ mm / dd / yyyy”)

= CONCATENATE(TEXT(A2,“ MM / DD / YYYYYY”),“-”,TEXT(B2,“ MM / DD / YYYY”))

doc合併文字日期4


這是一個強大的功能,稱為 Excel的Kutools,其 結合 實用程序,您可以將多個列,行和單元格合併為一個單元格,而無需單擊幾下就不會丟失數據。

Excel的Kutools : 帶有300多個便捷的Excel加載項,可以在30天內免費試用.

如果你已經安裝 Excel的Kutools,請執行以下操作:

1。 選擇要合併的數據范圍。

2。 點擊 庫工具 > 合併與拆分合併行,Columnc或單元格而不會丟失數據,請參見屏幕截圖:

3。 在 合併列或行 對話框中,進行以下操作:

  • (1.)選擇 合併欄 選項;
  • (2.)在[ 指定分隔符 部分;
  • (3.)指定結果的位置,您可以將它們放在左單元格或右單元格中;
  • (4.)為您的數據范圍選擇一個選項,可以在合併單元格內容之後保留或刪除其他單元格,也可以合併那些合併的單元格。

doc合併文字日期6

4。 完成設置後,單擊 OK 關閉此對話框,並且數據已合併到一個單元格中,該單元格由您指定的分隔符分隔,請參見屏幕截圖:

doc合併文字日期7
保留合併單元格的內容 刪除合併單元格的內容 合併合併的單元格
doc合併文字日期8 doc合併文字日期9 doc合併文字日期10

備註:此實用程序還可用於合併兩個日期單元格。

單擊以了解有關Kutools for Excel的此合併功能的更多詳細信息。

隨著 結合 功能,您可以快速方便地完成以下問題。

合併和合併列而不丟失Excel中的數據

合併和合併行而不丟失Excel中的數據

如何在Excel中將單元格合併為帶有空格,逗號和分號的單元格?

立即下載和免費試用Excel的Kutools!


Excel的Kutools:具有300多個方便的Excel加載項,可以在30天內免費試用,沒有任何限制。 立即下載並免費試用!

最佳辦公生產力工具

熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

kte選項卡201905


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (20)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
merhaba,

benim söyle bir şablona ihtiyacım var. Serdar Mart 81 de doğdu. Mart 81 kısmını başka bir hücreden alacağım. yazdığım formülde ay-yıl yerine rakamsal olarak görünüm çıkıyor. yardım eder misiniz
This comment was minimized by the moderator on the site
Hello,
Could you explain your problem by using English? And it is best to upload the attachmnet or screenshot here for describing your problem.
Thank you!
This comment was minimized by the moderator on the site
hola, saludos. como puedo combinar la fecha de hoy con un valor de otra celda, por ejemplo, en la celda A tengo el numero 5, entonces en la celda B quiero que aparezca la fecha de hoy con la celda A, asi ='19-05-22'!A1 pero la idea es que pueda hacer los mismo pero poniendo la fecha del dia anterior para que cada dia me de el valor de A1 que va cambiando dia a dia. les agradezco su ayuda
This comment was minimized by the moderator on the site
I Want to do enter in one headind row thats automatically fixed same another named data = EXAMPLE -  NAME     VALUE        NAME     VALUE
TRP    6000        ERD    2000        when we have to enter ERD Value 2000 this need to automatically insert correct name 
TRY    4000        TRP    6000
ERD    2000        TRY    4000
This comment was minimized by the moderator on the site
Hello, SHANMUGAM,Sorry that I can't fully understand your question. If you don't mind, could you please be more specific? And please kindly send screenshot of 
your problem. Thanks!
This comment was minimized by the moderator on the site
i want to set auto date with time in one cell ... Example ROTN_26/Dec @ 07 PM            
This comment was minimized by the moderator on the site
Hello, SHANMUGAM,Maybe the following formula can help you:="ROTN"&"_"&TEXT(TODAY(),"DD/MMM")&" "&"@"&" "&TEXT(NOW(),"HH AM/PM")
Please try, thank you!
This comment was minimized by the moderator on the site
Thank you 
This comment was minimized by the moderator on the site
I want to set auto today date formate with any text in one cell. example: Date 1-jan-20
This comment was minimized by the moderator on the site
Hello, imtiaz,To solve your problem, please apply the following formula, you just need to replace the text "Date" to your own text string.="Date"&" "& TEXT(TODAY(),"dd-mmm-yy")

Please try it, thank you!
This comment was minimized by the moderator on the site
Thank you so much🙂.its working.
This comment was minimized by the moderator on the site
6-March-2018 To 6-March-2018

how?
This comment was minimized by the moderator on the site
Hi, Movic.
If your dates in cell A1 and B1, please apply the following formula:
=TEXT(A1,"d-mmmm-yyyy")&" To "&TEXT(B1,"d-mmmm-yyyy")
Hope it can help you, please try!
This comment was minimized by the moderator on the site
Hi...... for same fomula i need to underline only date..... How can I do it.......? please help..
This comment was minimized by the moderator on the site
ıt helped me thanks for sharing
This comment was minimized by the moderator on the site
1-Aug-18 ~ Rose

How ?
This comment was minimized by the moderator on the site
Hello, Hafiz,
For solving your problem, please apply the below formula:

=TEXT(A2,"d-mmm-yyyy")&" ~ "&B2

Please try it, hope it can help you!
This comment was minimized by the moderator on the site
Hi, I have doubt... One cell Value is 5 Years, 3 Months, 25 Days and another cell value is 4 Years,5 Months,05 Days . I need to total in next cell (9 Years,8 Months,30 Days). Please anyone help... I need formula in excel
This comment was minimized by the moderator on the site
Hi I have a formulae for date in cell A2 = Today()-Day(Today()), which gives me the last day of previous month whenever I open my spreadsheet. Now in cell B2 I want a first date for current month with static number 01 at the end. Eg. A2= 7/31/2016 B2= 8/1/2016 01 How to derive B2 date with 01 at the end. Currently for B2 I am using EOMONTH(A2,0) which gives me 8/1/2016 but I am not able to input 01 at the end of the date with any formula, it converts the date in to a number. Please help.
This comment was minimized by the moderator on the site
I think you want this:

=TEXT(EOMONTH(A2,0),"mm/dd/yyyy")&" 01"
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations