如何全局停止excel日期自动格式化 [英] How to globally stop excel date autoformatting

查看:528
本文介绍了如何全局停止excel日期自动格式化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Excel中打开一个csv文件,每次打开它,它将一些字段更改为日期,当它们显然不是日期(它们是CAS号,而不是它的重要)。如何停止此行为?我知道我可以更改列的格式,但这不会帮助我第一次打开CSV文件。

I'm opening a csv file in excel and every time I open it, it changes some fields into dates when they are clearly not dates (they're CAS numbers, not that its important). How do I stop this behavior? I know I can change the column format but this doesn't help when I first open the CSV file.

推荐答案

你可以做的很少,而文件有 .csv 扩展名。 Excel对.csv文件有特殊处理。有一种方法来处理它,但它涉及重命名文件以具有一些其他扩展名。您可以重命名 .csv 文件以具有扩展名 .txt ,然后打开 .txt 文件:此时Excel将要求您确认要导入的文件的详细信息。在第一步,选择 delimited ;在第二步,为报价元素选择逗号作为分隔符和双引号。最后,在下一步中,您可以选择指定列格式。只需选择所有列,然后选择文本即可。或者,选择相应的一列,然后选择 (如果数字较长,则冒险获得科学记数法(1.23456E + 10)。

Unfortunately, there's not much you can do while the file has .csv extension. Excel has special handling for .csv files. There is a way to deal with it, but it involves renaming the files to have some other extension. You can rename .csv file to have extension .txt, for example, then open the .txt file with Excel: this time Excel will ask you to confirm details of the files for import. At the first step, select delimited; at the second step, select comma as the delimiter and double quote for the quote element. Finally, at the next step, you will have the option to specify the column formatting. Just select all columns and select text, for example. Alternatively, select the one column in question and choose number (although this risks getting scientific notation (1.23456E+10) if the numbers are long.

这篇关于如何全局停止excel日期自动格式化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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