Excel weird behaviour with dates => text

前端 未结 3 612

I have a ton of cells that contain dates such as 22/12/2013. This is set automatically as Date format. And if I try to change the cell format to text (Simply because I want

相关标签:
3条回答
  • 2021-01-05 08:32

    As andy holaday says, using cell formatting to change the format won't actually change existing numbers (dates) to text. You can do that with "text to columns" functionality:

    Select column of dates > Data > Text to columns > Next > Next > at step 3, under "column data format" choose "text" > Finish

    That converts existing dates, if you have dates to enter which you want to enter as text you can add an apostrophe, as Polly says, or you can simply pre-format the entry column as text format.

    0 讨论(0)
  • 2021-01-05 08:36

    It's not an error. Changing the format of a cell does not change the value that is stored in that cell. Excel stores dates as numerical values. What I think you want to do is change the numerical value into text that resembles a date. Try this formula in a new cell somewhere:

    = TEXT(A1,"dd/mm/yyyy")
    
    0 讨论(0)
  • 2021-01-05 08:47

    Enter your dates with an apostrophe at the beginning. '22/10/2013 will be interpreted as a text string.

    0 讨论(0)
提交回复
热议问题