Excel:格式化到目前为止的yearMonth数字

时间:2016-03-04 18:25:56

标签: excel

月/年列的数据来源提供的格式为201603,代表2016年3月。

是否可以将此数字格式化为Excel可以按日期正确排序的格式的日期?

1 个答案:

答案 0 :(得分:3)

使用:

=DATE(LEFT(A1,4),RIGHT(A1,2),1)

enter image description here

然后您可以根据需要格式化数据:

enter image description here

所以你得到了想要的输出,

enter image description here

相关问题