简体   繁体   English

如何在Excel中更改一般日期格式?

[英]How to change general date format in excel?

Quick but not a simple question for me: How to change the date format in excel so it not only affects how I see the date but also how Excel understands this format? 快速但不是一个简单的问题:如何在excel中更改日期格式,这样不仅影响我如何查看日期,还影响Excel如何理解该格式?

I mean, I want to have date like 04/13/2018 in cells and I changed to this format (it works fine) but excel still converts it to "13.04.2018" in the text field above the sheet. 我的意思是,我想在单元格中使用类似于04/13/2018的日期,并且我更改为这种格式(可以正常使用),但是excel仍会在工作表上方的文本字段中将其转换为“ 13.04.2018”。 And It cannot be like that because I have macros built in those cells that keeps throwing errors that date format is still wrong and it needs "MM/DD/YYYY"... 而且不能那样,因为我在那些单元格中内置了宏,这些宏不断抛出错误,日期格式仍然是错误的,它需要“ MM / DD / YYYY” ...

Maybe I can somewhat change my region/locale formats in excel? 也许我可以在excel中更改我的地区/语言环境格式?

Alex 亚历克斯

The result that came out shows that Excel understands that format. 得出的结果表明Excel可以理解该格式。 If you want to make sure that Excel understands your style of format, then you probably would want to change the DATE and DATE_TEXT function. 如果要确保Excel理解您的格式样式,则可能要更改DATE和DATE_TEXT函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM