跳到主要内容

如何在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


这是一个强大的功能,称为 Kutools for Excel,其 结合 实用程序,您可以将多个列,行和单元格合并到一个单元格中,而无需单击几下就不会丢失数据。

Kutools for Excel : 带有300多个便捷的Excel加载项,可以在30天内免费试用.

如果你已经安装 Kutools for Excel,请执行以下操作:

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!


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 (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