In a recent formatting webinar, someone wanted to display a date over three lines in a cell. It is possible using a keyboard shortcut. It is also possible with a formula.
They wanted to make the column as narrow as possible but keep the date easy to read. The format option can show the date over three lines, but changing the column width to a narrower column stops the date displaying correctly.
Cell B1 in the image below shows the effect required. Cell B1 has been entered as text using Alt + Enter to enter manual line breaks in the cell.

Format solution
A custom number format using the shortcut key Ctrl + J can provide a solution.

This keyboard shortcut enters a line break in a custom number format dialog when using the Type box.
Unfortunately, the Type box and Sample section in the dialog don’t show multiple lines or show a visible symbol for the line break, so it looks unusual – see example below.

Only the dd displays in the Type box and the code below is ddmmmyyyy without any breaks because there is no line break character displayed. I entered dd then pressed Ctrl + J, then entered mmm and pressed Ctrl + J, then type yyyy and clicked OK.
The last piece of the puzzle is to format the cell with Wrap Text – see the outcome below.

Cell C1 is linked to cell A1 and has the custom number format applied and it is displaying the date over three lines.
Format issue
Now if you try to make the column narrower a problem appears – see below.

The date won’t display.
Formula solution
The formula solution converts the date to text strings and uses CHAR(10) for a line break – see below.

The formula in cell D1 is:
=DAY(A1)&CHAR(10)&TEXT(A1,"mmm")&CHAR(10)&YEAR(A1)
I had to use Wrap Text and the Centre format on the formula cell to get it to display as required.
Formula issue
The problem with this solution is that cell D1 is not a date. It looks like a date, but it is treated as text if referred to by another formula.
Solution
If you need a narrower column then the formula is the solution. If you need a date the format works.
If you need both then you will need two cells. One cell can be hidden and hold the date, and one cell displayed with the formula in a narrow column.

Your formula…
.
=DAY(A1)&CHAR(10)&TEXT(A1,”mmm”)&CHAR(10)&YEAR(A1)
.
references the data cell A1 three times and the CHAR(10) character call twice. Since you are already using the TEXT function, extending its use as follows reduces your formula by 9 characters and only references the A1 cell once, but it still references the CHAR(10) function call twice…
.
=TEXT(A1,”d”&CHAR(10)&”mmm”&CHAR(10)&”e”)
.
Here are two more formulas that each reference the A1 cell and the CHAR(10) function call once and are both shorter than your formula…
.
=SUBSTITUTE(TEXT(A1,”d.mmm.e”),”.”,CHAR(10))
.
=TEXTJOIN(CHAR(10),,TEXT(A1,{“d”,”mmm”,”e”}))
.
NOTE: The “e” in each of my TEXT function calls is a shortcut metacharacter for the 4-digit year (“yyyy”).
Thanks Rick – I was wondering how you might tackle this.
Your thought processes should be bottled – you definitely think outside the (TEXT)box.
I did not know the e shortcut – thanks for sharing – I always seem to learn something from your examples.
The use of the array syntax inside a TEXT function – very clever.✔️✔️✔️