本文介绍了将日期字段转换为 Excel 中的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 Excel 文件,其中有一列格式为 dd-mm-YYYY
的日期.
I have an Excel file which has a column formatted as date in the format dd-mm-YYYY
.
我需要将该字段转换为文本.如果我更改字段类型,excel 会将其转换为一个奇怪的值(例如 40603
).
I need to convert that field to text. If I change the field type excel converts it to a strange value (like 40603
).
我尝试了文本功能,但它给了我错误 508.
I tried the text function but it gives me Error 508.
有什么帮助吗?
推荐答案
您不需要转换原始条目 - 您可以在串联公式中使用 TEXT 函数,例如在 A1 中使用日期使用这样的公式
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
="今天是 "&TEXT(A1,"dd-mm-yyyy")
您可以根据需要更改dd-mm-yyyy"部分
You can change the "dd-mm-yyyy" part as required
这篇关于将日期字段转换为 Excel 中的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!