简体   繁体   English

将列中的日期合并到 Excel 中的单个单元格中

[英]Combine dates from a column into a single cell in Excel

How can I combine multiple dates?.如何合并多个日期? For example, dates for whole year 2020 into a single cell in Excel.例如,将 2020 年全年的日期放入 Excel 中的单个单元格中。 Now, I have dates in A column starting from 2020-01-01 till 2020-12-31 and I want to concatenate this dates into a single row in a format '2020-01-01','2020-01-02',....现在,我在 A 列中有从 2020-01-01 到 2020-12-31 的日期,我想以 '2020-01-01'、'2020-01-02' 的格式将这些日期连接成一行……

Depending on which column you are using you can use the following:根据您使用的列,您可以使用以下内容:

Type =Concatenate(A1:A10&",") then highlight the A1:A10&"," and press f9 to show the cell contents.键入=Concatenate(A1:A10&",")然后突出显示A1:A10&","并按 f9 显示单元格内容。

Delete the { } around the new range and press enter.删除新范围周围的{ }并按 Enter。

Change the range to whatever range you have the dates in and this should work.将范围更改为您拥有日期的任何范围,这应该可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM