You can spend hours formatting a worksheet, applying multiple formats to various cells and tweaking the appearance of entries until your worksheet looks just right. Fortunately, Excel provides a feature that enables you to apply several formatting attributes with a single command or keystroke: styles . A style is a group of cell formatting options that you can apply to a cell or cell block. If you change the style's definition later, that change affects the formatting of all cells formatted with that style. Each style contains specifications for one or more of the following options:
Excel provides the following six default styles: Normal: The default style. Number is set to 0, Font to Arial, Size to 10 point, Alignment of numbers is right, and Alignment of text is left, No Border, No Pattern, and Protection is set to locked. Comma: Commas are used to separate thousands, millions, and so on, and two decimal places are displayed. Comma [0]: Commas are used to separate thousands, millions, and so on, but no decimal places are displayed. Currency: Dollar sign is added to value; commas are used to separate thousands, millions, and so on; and two decimal places are displayed. Negative numbers are displayed in parentheses. Currency [0]: Dollar sign is added to value; commas are used to separate thousands, millions, and so on; but no decimal places are displayed. Negative numbers are displayed in parentheses. Percent: Percentage sign (%) is tacked on to the end of the value. The following sections show you how to apply these styles to selected cells, create your own styles, and save styles in a worksheet template. Applying Existing StylesYou can apply most of Excel's default styles by selecting the cell or cell range and then clicking the appropriate button in the Formatting toolbar. For example, to apply the Currency format, select the cells, and then click the Currency Style button (the button with the dollar sign on it). To apply the Percentage format, click the Percent Style button. To apply the Comma format, click the Comma Style button. To apply an Excel style that does not have a button or to apply a style that you will create in the next section, perform the following steps:
If you make much use of styles, consider placing the Styles drop-down list on the Formatting toolbar. Here's what you do:
Now, whenever you want to apply a style to a cell or range, simply select the cell or range, open the Style list, and click the desired style. Creating Your Own StylesBecause Excel features such a limited number of styles, you probably will want to create your own styles. The easiest way to create a style is by example; you format a cell or range to suit your tastes and then create a style that saves the formatting applied to the cell(s). To create a new style by example, follow these steps:
You can also create a style from scratch by using the Style dialog box, though the process is a little step-heavy:
Tip
Editing StylesIf you apply a style to one or more cells and then modify the style later, any changes you enter are immediately applied to all cells you formatted with that style. You don't need to reapply the style to the cells you formatted with that style. To edit a style, simply select the style in the Style dialog box, click the Modify button, and use the Format Cells dialog box to enter your preferences. Click OK to close the Format Cells dialog box, and then click OK to save your changes. Saving Styles in a TemplateWhenever you save a workbook, the styles you created while formatting that workbook stay with the workbook. You can also save the workbook as a template. When you create a new workbook, you can then choose one of the New from Template options to open a new workbook that contains the styles in that template. To learn how to save a workbook as a template, see the section "Saving a Workbook as a Template" in Chapter 3, "Working with Workbook Files." Copying Styles from Another WorkbookIf you already created a workbook and want to use styles you created in a different workbook, you can copy the styles from one workbook to the other. To copy styles, follow these steps:
|