Excel合并单元格日期和时间

Poi*_*ter 8 excel datetime ms-office

我想在Excel 2013列日期(2016-01-01)和列时间(16:00:00)合并单元格,

如何格式化单元格以获得2016-01-01 16:00:00

这是我的例子https://postimg.org/image/clxeqb66h/

我明白了 42677 16:00:00

Ron*_*eld 16

  • 添加这两个值

    • 日期和时间存储在Excel中,作为自1900年1月1日以来的天数和当天的一小部分时间.因此,要合并日期和时间,您需要添加它们

    • 将结果格式化为 yyyy-mm-dd hh:mm:ss

在此输入图像描述


War*_*ula 5

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

输入此公式= TEXT(A2,"m/dd/yy ")&TEXT(B2,"hh:mm:ss")

A2 indicates the first data in date column, 
B2 stands the first data in time column, 
you can change them as you need) into a blank cell, 
and press Enter key, 
then drag the fill handle to fill the range you want to use this formula. 
See screenshot:
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

更多:https://www.extendoffice.com/documents/excel/1538-excel-combine-date-and-time.html


小智 4

您可以通过使用 TEXT 函数来实现这一点。

只要 A1 单元格上有日期..

=TEXT(A1,"YYYY-MM-DD") 

=TEXT(A1,"HH:MM:SS")
Run Code Online (Sandbox Code Playgroud)