Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. 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: Adding a Custom Format to those Offered by Excel.

Adding a Custom Format to those Offered by Excel

Written by Allen Wyatt (last updated January 20, 2024)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


When you display the Format Cells dialog box (Home tab of the ribbon, click the small icon at the bottom-right of the Number group) and click Custom on the Number tab, Excel displays a list of custom formats. Some of these formats are provided by Excel by default, and others reflect custom formats used within the current workbook.

If you spend some time developing a custom format, it would be helpful to have that format always appear in the list of custom formats, regardless of which workbook you are using. Unfortunately, that is not in the cards for Excel; it lists only those custom formats unique to the current workbook.

There are a couple of workarounds, however. The first is a natural extension to what is already mentioned in this tip—that the custom list includes any custom formats that have been defined in the current workbook. This means that you could replace Excel's default workbook with one of your own, and the custom format will be available in the list provided the format was defined in the workbook you saved as the default.

Sound confusing? It doesn't need to; all you need to do is start with a brand new workbook and define the custom format. Then, save the workbook as a template (under the name Book.xltx) or macro-enabled template (under the name Book.xltm) in the XLStart folder. (Use Windows' Search tool to look locate the XLStart folder.) This template file then becomes the basis for all new workbooks, which means the custom format will be available in them. It will not affect any existing workbooks.

One problem with using the default-workbook approach is that the custom format, while included in the list, is at the bottom of the list. Unfortunately, there is no way to get your own preferred set of custom formats at the top of the list. There is a quick way to get exactly the custom formats you want, however—use macros.

Seriously, you can create a macro that applies a custom format of any desired type. The macro can be stored with individual workbooks or stored in the Personal.xlsb workbook so it is available to all workbooks on a system. You can use shortcut keys with the macro so that the format can be applied with a single keypress, or you can assign the macro to a toolbar button or custom menu so that it can be applied using the mouse.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (7992) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Excel here: Adding a Custom Format to those Offered by Excel.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Getting Page Number Formatting Changes to Stick

Placing a page number into your document can be easy. Getting that page number to look the way you want it to can be more ...

Discover More

Returning the MODE of a Range

The MODE function is used to determine the most frequently recurring value in a range. This tip explains how to use the ...

Discover More

Highlighting Text Using the Keyboard Only

Highlighting text, using the Highlight tool, is a great way to mark up a document. Normally you need to use the toolbar ...

Discover More

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!

More ExcelTips (ribbon)

Can't Set Custom Format in VBA

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 More

Handling Negative Numbers in a Complex Custom Format

Custom formats are great for defining how a specific value in a cell should look. They aren't that great at doing complex ...

Discover More

Decimal Tab Alignment

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
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 - 0?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

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.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.