
Tips.Net > ExcelTips Home > Formatting > Cell Formatting > Adding a Custom Format to those Offered by Excel
Summary: Custom formats in Excel provide a way for you to specify exactly how you want data to look in a cell. You can define custom formats in a workbook, and Excel remembers what they are so you can use them again. Using them in other workbooks is a bit trickier, as you find out in this tip. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, and Excel 2003.)
When you display the Format Cells dialog box (Format | Cells) and click Custom on the Number tab, Excel displays a list of custom formats. (Click here to see a related figure.) 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.xlt, in the XLStart folder. (Just use Windows' Search tool to look locate the XLStart folder.) This file (Book.xlt) 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 Personal.xls 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.
Tip #3096 applies to Microsoft Excel versions: 97 2000 2002 2003
Save Time and Money! Many people need to keep track of employee time, but don't know where to start when it comes to creating a spreadsheet. Here's a way to save time, effort, and money with ready-to-use timesheet templates.
Check out Timesheet Templates today!
If you have tons of data to analyze, one of the best tools in Excel's arsenal is the PivotTable. Learn how to use this tool to analyze your data. (more information...)
Ask an Excel Question
Make a Comment
ExcelTips FAQ
ExcelTips Premium
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips
Advertise on the
ExcelTips Site