将文本(12.05.79)转换为excel中的日期 [英] Convert text (12.05.79) to date in excel

查看:164
本文介绍了将文本(12.05.79)转换为excel中的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将一些日期导入Excel文档,我需要将它们格式化为日期而不是文本字符串。

I have imported some dates into an excel document and I need to format them as dates not text strings.

格式如下: 12.05.79 但是当我将格式设置为日期excel没有做任何事情。

The format is like this: 12.05.79 but when I set the format to date excel doesn't do anything.

任何方式这样做?

C

推荐答案

两种可能的方法来转换原位列

Two possible ways to convert "in situ" without an extra column

1 - 使用文本到列

1 - use "Text to columns"

选择日期列,然后选择数据>文本到列>下一页>下一页>列数据格式选择日期,格式来自下拉菜单(MDY或DMY)>确定

Select column of dates then Data > text to columns > Next > Next > "under column data format" select "Date" and the format from dropdown (MDY or DMY) > OK

2 - 使用编辑/替换。替换。与/(在两种情况下都不含引号)

2 - use Edit/Replace. Replace "." with "/" (in both cases without quotes)

这篇关于将文本(12.05.79)转换为excel中的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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