简体   繁体   English

如何让 Excel 不将日期转换为日期格式

[英]How do I make Excel NOT convert the dates to date format

I did this table in Excel, but this is really frustrating: in certain cells, unpredictable to me, it doesn't let me just write 01/03/2019 .我在 Excel 中做了这个表格,但这真的很令人沮丧:在某些单元格中,我无法预测,它不允许我只写01/03/2019 Instead, it automaticly transforms it to 1/3/19 .相反,它会自动将其转换为1/3/19 To be honest, I don't mind the first part;老实说,我不介意第一部分。 the real issue is that I need it to be 2019 , and not 19 , since I'm saving it in .csv format and not keeping it in .xlsx .真正的问题是我需要它是2019 ,而不是19 ,因为我将它保存为.csv格式而不是保存在.xlsx

Therefore, what I need is a way to make Excel maintain exactly what I wrote without transforming it in Date format (changing it to General just gives that format with the number of days since 1900, 43468 ), or at least, I need the year to stay as 2019 .因此,我需要的是一种方法,可以让 Excel 完全保留我所写的内容,而无需将其转换为Date格式(将其更改为General只会给出该格式自 1900, 43468以来的天数),或者至少,我需要年份留在2019

This is the colum with the dates:这是带有日期的列:

1
19/05/2009
2
19/05/2010
3
19/05/2011
4
19/05/2012
5
19/05/2013
6
19/05/2014
7
19/05/2015
8
19/05/2016
9
19/11/2016
10
16/11/2018
11
20/12/2018
12
"01/03/2019"
13
17/7/2019
14
"12/09/2019"
15
30/10/2019
16
"12/12/2019"
17
"11/1/2020"
18
19/02/2020
19
20/04/2020
20
17/05/2020
21
13/06/2020
22
"02/07/2020"
23
13/08/2020
24
13/09/2020
25
15/10/2020
26
15/11/2020
27
19/09/2009
28
19/01/2010
29
19/09/2010
30
19/11/2010
31
19/03/2011
32
19/05/2011
33
19/09/2011
34
19/05/2012
35
19/09/2012
36
19/05/2013
37
19/10/2013
38
19/05/2014
39
19/05/2015"
40
19/05/2016
41
19/11/2016
42
19/01/2019
43
19/08/2020
44
19/10/2008
45
19/01/2009
46
19/04/2009
47
19/07/2009

I temporariyl put in quotation marks (") as placeholders, because they keep the text to be converted to Date , but I don't want to keep them.我临时加上引号 (") 作为占位符,因为它们保留要转换为Date的文本,但我不想保留它们。

如果在任何内容之前放置一个 '(引号)字符串,它就会显示为字符串。

好的,根据@BigBen 的评论,我明白了:我选择了单元格并设置了单元Format Cells (格式> 单元格右键单击,它几乎在底部Cmd + 1 。然后我转到Date并选择了格式3/14/2012而不是*3/14/12

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

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