Professional Documents
Culture Documents
Styles in Excel
Styles in Excel
Styles
Of all formatting options Excel offers, “Styles” are probably the least popular. A style is
simply a set of formatting settings with a name. All cells to which a style has been applied
share the same formatting and when you modify a style, all cells formatted with that style
change their format accordingly.
Use of styles takes some getting used to, but can help you immensely. Imagine showing
your nicely formatted sheet to your boss. Then your boss asks you if you could please
change all input cells to having a light-yellow background fill, instead of a dark yellow one.
For a large model, this would result in a huge amount of work. If you had used styles, then it
would take just a few seconds.
Creating a style Learn through a practical walk- Styles can also decide which
through how to create/set up a cells are locked/unlocked (super
style. helpful for data entry sheets).
Deviate from a style This section walks you through Deviating from styles is not hard
creating deviations from a preset and other features of a style will
style and the effect thereof. still be updated even if you
change an aspect (like color).
Tips for using styles Here you learn some super Create an extra worksheet with
practical tips for setting up and all the styles to easily update
maintaining styles. formats across your whole sheet
in mere moments.
To create a new style with this changed setting, select the Home tab and click the Cell Styles
drop-down.
To create a new style, simply type its name in the box "Style name". By default, all formatting
elements are checked. Remove the checkmarks for the formatting elements you want to
omit from the style you are creating (the dialog shown above has the Number and Alignment
elements turned off).
Use the "Format..." button to adjust the elements to your needs. Excel will show the standard
"Format cells " dialog screen:
As soon as you close the new Style dialog, the newly added style is not applied to your cell,
you’ll have to do that after the style has been added.
Applying styles
It is very easy to apply a style to a cell. Just click the Home tab, and from the Styles group
expand the Cell Styles gallery and click a style.
Any formatting elements the cell already has which are in the categories checked in the style
definition will be overwritten by the ones form the styles. The categories which are not
checked will remain untouched.
So after changing a fill attribute (like the color) of a cell, changing the fill color of the style
will update all cells, except the one you just modified. First we selected one cell (B7) and
changed its fill color:
Managing styles
If you like to keep an overview of what styles are available in your file we would advise you to
add a special worksheet to your workbook. Put the names of the styles in column A and an
example output in column B:
If you need to adjust a style, select the cell in column B and adjust the style settings from
there.
Adopting this method will likely trigger you to think about what cell styles your document will
need. By doing this the quality of your Excel model will gradually improve. You'll gain in
consistency and lose the ad-hoc (often messy) formatting jungle that you may have grown
accustomed to.
• Input cells: Cells that are the main input to your model
• Parameter cells: Cells that contain constants for your model, such as boundaries.
• Output cells: Cells in an area that is meant for output, such as printing or presenting
the results of a calculation on screen.
• Calculation cells: The cells where the actual calculation work is performed
• Boundary cells: By shading otherwise empty cells you can easily make areas with
differing functions stand out from other areas.
Consider creating separate (sets of) styles for each of these cell functions, each (e.g.)
having its own fill color. Don't forget to make decisions on whether or not a style's locked
property needs to be on or off. If you use a system like this, it becomes very easy for you to
maintain your file. Imagine how easy it now becomes to change a cell from an input to an
output cell: you change the style and you’re done.
• Input_Num2DP • Calc_Num2DP
• Input_Date • Calc_Date
• Input_Time • Calc_Time
• Input_Text • Calc_Text
That way styles with a similar function will remain together on the Styles gallery (the styles
are sorted alphabetically by their names) whereas you can quickly discern between similar
styles by what’s in their names.