Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Creating Two-Line Custom Formats.
Written by Allen Wyatt (last updated February 7, 2026)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365
Excel is quite flexible in how it allows you to set up custom formats for displaying all sorts of values. Most custom formats are straightforward and easy to figure out, once you understand how custom formats work. (Custom formats and how to set them up has been discussed fully in other issues of ExcelTips.)
What if you want to create a two-line custom format, however? For instance, you may want to format a date so that the abbreviated day of the week and day of the month is on the first line, followed by the unabbreviated name of the month on the second line. Using such a format, a date would appear in a single cell in this manner:
Sat 13 April
Most of this can be done by the custom format "ddd d mmmm", but you need to figure out a way to add a line break between the "d" and the "mmmm". Excel won't let you press Alt+Enter between them, which is what you normally do to add a line break.
The solution is to use the numeric keypad to enter the desired line break in the format. Follow these steps to set it up:

Figure 1. The Number tab of the Format Cells dialog box.

Figure 2. The Alignment tab of the Format Cells dialog box.
After setting up the format in this manner, you will need to adjust the row height of the formatted cells so that the entire two lines of the date will display.
You may also need to adjust the column width. Even though the display is on two lines, Excel may calculate column width as if the formatted value were on one line; if the column is too narrow you may see #####. One thing to try is to use the Alignment options in the Format Cells dialog box: turn Wrap Text off, turn on Shrink to Fit, and then turn Wrap Text back on. Depending on your data, you may also find that centering the cell content horizontally makes the extra whitespace less noticeable.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12587) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Creating Two-Line Custom Formats.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 365 applications with VBA programming. Written in clear terms and understandable language, the book includes systematic tutorials and contains both intermediate and advanced content for experienced VB developers. Designed to be comprehensive, the book addresses not just one Office application, but the entire Office suite. Check out Mastering VBA for Microsoft Office 365 today!
You can, in a macro, specify a custom format for a range of cells. If the custom format doesn't seem to "stick" (so to ...
Discover MoreWant information in a worksheet to be formatted and displayed as rounded to a power of ten? You may be out of luck, ...
Discover MoreExcel includes quite a few different formats you can use for the information in a worksheet. One format that isn't as ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2026-02-07 11:56:10
Dave Bonin
I believe it's necessary to select "Shrink to fit" before selecting "Wrap text".
This is the only way I've gotten date wrapping to work over the years.
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2026 Sharon Parq Associates, Inc.
Comments