Excel TEXT formula doesn't convert 'yyyy' to a year

前端 未结 9 2664
清歌不尽
清歌不尽 2021-02-19 05:00

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

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 t

9条回答
  •  孤独总比滥情好
    2021-02-19 05:26

    This should work regardless of your system language or regional settings:

    ="Some text and a date: "&TEXT(DAY(A2);"00")&"-"&TEXT(MONTH(A2);"00")&"-"&TEXT(YEAR(A2);"0000")
    

    Click here to see it working

    [Edit] I just tested the solution with German (TT.MM.JJJJ) and English settings (DD.MM.YYYY) and it works fine! You may need to use , instead of ; in the MS EXCEL formula (depending on your actual list separator symbol --> check your OS settings!).

提交回复
热议问题