Excel TEXT公式不会将“ yyyy”转换为年份 [英] Excel TEXT formula doesn't convert 'yyyy' to a year

查看:179
本文介绍了Excel TEXT公式不会将“ yyyy”转换为年份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Excel 2013中将一些文本与日期结合起来。

I want to combine some text with a date in Excel 2013.

假设我有一个单元格A2,其日期类似于 2014年10月30日。我试图用以下公式在文本后附加日期:
=某些文本和一个日期:& A2

Let's say I have a cell A2 with a date like 30-10-2014. I tried to append the date after the text with this formula: ="Some text and a date: "&A2

但是输出将日期显示为数字:一些文本和日期:41942

But the output shows the date as a number: Some text and a date: 41942

所以我尝试了与 TEXT 公式:
=某些文本和日期:& TEXT(A2; dd-mm-yyyy)

但这显示了一些文本和一个日期:30-10- yyyy 而不是某些文本和日期:2014年10月30日

所以我不明白 TEXT 公式有效,还是这里有一些错误/问题?

So or I do not understand how the TEXT formula works or is there some bug / issue here?

更新:重要的是,我要使用荷兰语版本的Windows(7),但要使用英语版本的Excel(2013)才能导致此问题!

UPDATE: It looks like it's important that I have a Dutch version of Windows (7) but an English version of Excel (2013) which causes this issue!

推荐答案

所有荣誉都归@AxelRichter,谢谢Axel!

All kudos go to @AxelRichter, thanks Axel!

如果您使用的是荷兰语Windows,但英语版本的Excel(2013),看起来公式很复杂。例如,我仍然具有诸如 TEXT 的英语公式名称(在荷兰语中为 TEKST ),但仍然必须在公式中使用冒号而不是逗号。 TEXT format_text 值仍然希望荷兰语格式与年份有所不同( jjjj 而不是 yyyy )。

It looks like that if you have a Dutch Windows but an English version of Excel (2013) the formulas get mixed up. For example, I still have the English formula names like TEXT (which would be TEKST in Dutch) but still have to use a colon instead of a comma in the formula. The format_text value of TEXT still expects the Dutch format which is different for the year (jjjj instead of yyyy).

因此,如果您使用的是荷兰语的Windows和英语的Excel版本,则某些文本和带格式日期的正确公式将是:

So if you have a Dutch Windows and an English Excel version the correct formula for some text followed by a formatted date would be:

=某些文本和日期:& TEXT(A2; dd-mm-jjjj)

我希望微软会解决此问题,这很烦人!

I hope Microsoft will fix this, this is very annoying!

这篇关于Excel TEXT公式不会将“ yyyy”转换为年份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆