Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, 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: Moving Custom Formats to Number Formatting Categories.
Written by Allen Wyatt (last updated June 15, 2019)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365
Neil knows how to create custom formats in Excel. He has created a custom format that displays dates exactly as he wants them displayed and he would like this custom format to show up in the Date category (Number tab of the Format Cells dialog) rather than being left in the Custom category. Neil wonders if there is a way to do this.
The short answer is that no, there is no way to do this. The formats that appear in the non-custom categories are hard coded by Excel. The only thing you could do to make the application of the custom formats faster (if that is your goal) is to use a macro that applies the format. The following is an example of a macro that applies a custom format to whatever cells are selected:
Sub MyNumberFormat() Selection.NumberFormat = "_(* #,##0_);_(* (#,##0);_(* ""-""??_);_(@_)" End Sub
You can assign the macro to a shortcut key or to the Quick Access Toolbar, thereby making it very easy to apply.
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8844) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Moving Custom Formats to Number Formatting Categories.
Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!
If you get an error when you try to use one of your custom views, it could be due to the protection you have applied to ...
Discover MoreApplying different formatting to the text within a cell can seem a bit confusing. This is certainly the case when it ...
Discover MoreWord provides a much wider range of formatting tools and options than you can find in Excel. One example is when it comes ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2019-06-17 12:15:12
Preston
Thanks for this nice tip, Mr. Wyatt!
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 © 2024 Sharon Parq Associates, Inc.
Comments