跳到主要内容

如何将日期和时间合并到Excel中的一个单元格中?

doc将日期时间合并为1
工作表中有两列,一个是日期,另一个是时间,如下所示,是否有任何方法可以将这两列快速合并为一个,并保持时间格式? 现在,我介绍Excel中将日期列和时间列合并为一种并保留时间格式的两种方法。
将日期和时间与Excel中的公式结合
与 Kutools for Excel 合并日期和时间 好主意3      玩

箭头蓝色右气泡 将日期和时间与Excel中的公式结合

有一个非常简单的公式,可以快速帮助您将日期列和时间列合并为一个。

输入此公式 = TEXT(A2,“ m / dd / yy”)&TEXT(B2,“ hh:mm:ss”) (A2代表日期列中的第一个数据,B2代表时间列中的第一个数据,您可以根据需要更改它们)进入空白单元格,然后按 输入 键,然后拖动填充手柄以填充要使用此公式的范围。 看截图:
doc将日期时间合并为2

提示: 您也可以使用此公式 = A2 + B2 然后将结果单元格格式化为日期和时间格式。


箭头蓝色右气泡 与 Kutools for Excel 合并日期和时间

使用上述公式,您可能会在编辑工作表时丢失公式结果。 现在我介绍一个 合并行,列或单元格而不会丢失数据 实用程序 Kutools for Excel 您可以将数据和时间单元直接合并为一个。 如果您想尝试新的便捷工具,可以 下载 尝试一下。

Kutools for Excel, 与超过 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 Tab 为 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