将Excel中的字符串转换为日期 [英] Converting Strings in Excel to Dates
本文介绍了将Excel中的字符串转换为日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
使用日期列旁边的列。
添加一个像这样的公式:
$ $ $ $ $ c $ = DATE(LEFT(A1,4),MID A1,5,2),RIGHT(A1,2))
这取决于你的日期格式,复制这个公式的所有行。
然后复制结果,并在粘贴值的地方做一个特殊的粘贴。
您现在有一个包含日期的列。
We imported a bunch of data into cells. But when you click on the cell, their is an apostrophe before the data, so it thinks its a string. By removing the apostrophe, the data gets recognized as dates. How do I avoid doing this by hand?
解决方案
Use a column beside the dates column.
Add a formula like this one:
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
it will vary depending on your date format, copy this formula for all rows.
Then copy the results, and do a paste special where you paste values.
You now have a column with dates.
这篇关于将Excel中的字符串转换为日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文