简体   繁体   English

将日期转换为文本而不丢失Excel中的格式?

[英]Convert Date to Text without losing the format in Excel?

I have a column in Excel Sheet which contains all the dates in custom dd-mm-yyyy format. 我在Excel工作表中有一列,其中包含自定义dd-mm-yyyy格式的所有日期。 I need to convert all these dates to text without losing the format. 我需要将所有这些日期转换为文本而不丢失格式。 If I am changing the cell format to Text, I am losing the format. 如果将单元格格式更改为“文本”,则将丢失该格式。 I tried to copy the cell values as values but did not work. 我试图将单元格值复制为值,但是没有用。 I searched a lot on the internet, but did not find any useful resource. 我在互联网上进行了很多搜索,但没有找到任何有用的资源。 What's the possible solution? 有什么可能的解决方案?

尝试使用TEXT函数。

=TEXT(A1,"dd-mm-yyyy")

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

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