Formating a date in excel when combining text from multiple cells

烂漫一生 提交于 2019-12-11 10:47:44

问题


I have an excel sheet with some text in numerous cells and need to combine them into one cell. Easy, except one of the cells is a date and when combining the text you get the date in base number format and not in date format.

Example:

A1 = "One" A2 = "Two" A3 = "05.12.2012" A4 = =A1&" "&A2&" "&A3 = "One Two 41248"

Anyone know what I need to do before A3 in order for the formula to return 05.12.2012 instead of 41248. I have tried "DATE" and "DATEVALUE" etc.

If it is relevent, the date is derived from a formula which looks for a value in an array. I have left out this forumla for ease of reading.


回答1:


A4 = =A1&" "&A2&" "&TEXT(A3,"DD.MM.YYYY")



来源:https://stackoverflow.com/questions/13723587/formating-a-date-in-excel-when-combining-text-from-multiple-cells

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