Excel - 将日期从yymmdd转换为dd / mm / yy [英] Excel - Convert date from yymmdd to dd/mm/yy

查看:661
本文介绍了Excel - 将日期从yymmdd转换为dd / mm / yy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个从Access数据库导出的Excel文件。



我有 25000 记录,我将需要更换所有的。



日期列未格式化(yymmdd)。我需要将日期格式从yymmdd更改为dd / mm / 19yy。对于 yy ,我需要在它前面添加一个常量值 19 ,所以它将是 19yy



我每行只有一个日期列



有没有办法将所有 25000 记录的列格式化为 yymmdd dd / mm / 19yy 点击几下?谢谢

解决方案

这将给您的结果作为实际日期,然后您可以根据需要使用Excel的日期格式化选项进行格式化



= DATE(1900 + LEFT(A1,2),MID(A1,3,2),RIGHT(A1,2))


I have an Excel file which is exported from a Access database.

I have 25000 records and I will need to replace all of them.

The date column is not formatted (yymmdd). I need to change the date format from yymmdd to dd/mm/19yy. For the yy I need to add a constant value 19 in front of it so it would be 19yy.

I have only 1 date column per row

Is there any way to convert all the 25000 record's column formatted in yymmdd to dd/mm/19yy in a few clicks?. Thank you

解决方案

This will give you the result as an actual date which you can then format as you wish using Excel's date formatting options.

=DATE(1900+LEFT(A1,2), MID(A1,3,2), RIGHT(A1,2))

这篇关于Excel - 将日期从yymmdd转换为dd / mm / yy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆