Written by Allen Wyatt (last updated June 15, 2019)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and 2021
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 2021. You can find a version of this tip for the older menu interface of Excel here: Moving Custom Formats to Number Formatting Categories.
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!
When you use the sorting tool, Excel tries to automatically figure out if your data includes a header row or not. Here ...
Discover MoreHave you ever seen a worksheet in which some zero values have a negative sign in front of them? There's a reason for ...
Discover MoreCurrency is formatted differently in different corners of the world. Most formatting uses periods and commas to indicate ...
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 © 2025 Sharon Parq Associates, Inc.
Comments