Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2019, and Excel in Office 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.
by Allen Wyatt
(last updated March 17, 2018)
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.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12587) applies to Microsoft Excel 2007, 2010, 2013, 2019, and Excel in Office 365. You can find a version of this tip for the older menu interface of Excel here: Creating Two-Line Custom Formats.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!
Excel includes quite a few different formats you can use for the information in a worksheet. One format that isn't as ...Discover More
If you are familiar with decimal tabs in Word, you may wonder if you can set the same sort of alignment in Excel. The ...Discover More
When working with very large numbers in a worksheet, you may want the numbers to appear in a shortened notation, with an ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.