Convert date field into text in Excel [duplicate]

[亡魂溺海] 提交于 2019-12-17 17:55:10

问题


I have an Excel file which has a column formatted as date in the format dd-mm-YYYY.

I need to convert that field to text. If I change the field type excel converts it to a strange value (like 40603).

I tried the text function but it gives me Error 508.

Any help?


回答1:


You don't need to convert the original entry - you can use TEXT function in the concatenation formula, e.g. with date in A1 use a formula like this

="Today is "&TEXT(A1,"dd-mm-yyyy")

You can change the "dd-mm-yyyy" part as required




回答2:


You can use TEXT like this as part of a concatenation

=TEXT(A1,"dd-mmm-yy") & " other string"




回答3:


If that is one table and have nothing to do with this - the simplest solution can be copy&paste to notepad then copy&paste back to excel :P



来源:https://stackoverflow.com/questions/9992893/convert-date-field-into-text-in-excel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!