问题
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