日期格式dd:mm:yy:hh:mm:ss到dd / mm / yy hh:mm:ss [英] Date format dd:mm:yy:hh:mm:ss to a dd/mm/yy hh:mm:ss

查看:448
本文介绍了日期格式dd:mm:yy:hh:mm:ss到dd / mm / yy hh:mm:ss的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用vba将格式为dd:mm:yy:hh:mm:ss的文件中存储的日期转换为使用来处理文件。我找不到任何紧凑的东西。我已经尝试了文本列,然后将分离出来的值合并到一个日期和时间,但对于大数据文件来说这是非常麻烦和缓慢的。

I want to use vba to convert the date stored on a file in the format dd:mm:yy:hh:mm:ss to something useable for sorting in excel using vba to process files. I cant find anything that is compact. I have tried text to columns and then combine the values seperated out back into a date and a time but this is cumbersome and slow for big data files.

任何人都知道快速方法可以使用?

Anyone know a quick method that can be used??

谢谢

推荐答案

也许这转换日期范围 A1:A10

[A1:A10]=[IF({1},TEXT(SUBSTITUTE(A1:A10,":",""),"00\/00\/00  00\:00\:00"))]

这篇关于日期格式dd:mm:yy:hh:mm:ss到dd / mm / yy hh:mm:ss的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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