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 Rid of All Hyperlinks

Need to get rid of all the hyperlinks in a worksheet? It's easy when you use this single-line macro.

Discover More

Finding All Camel-Case Words

If you need to find words that mix uppercase and lowercase characters together, you will appreciate this tip. Here I show ...

Discover More

Understanding Variables in VBA Macros

You can create and use all sorts of variables in your macros. This tip examines all the different data types you can specify.

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (ribbon)

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

Altering the Displayed Format of Numbers to the Nearest 100

Want information in a worksheet to be formatted and displayed as rounded to a power of ten? You may be out of luck, ...

Discover More

Creating Two-Line Custom Formats

Creating custom formats is a very powerful way to display information exactly as you want it to appear. Most custom ...

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 two less than 9?

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.