06 Conditional Formatting
06 Conditional Formatting
WPL_E821
Formatting allows you to change the way that the data in cells in a
worksheet appear on the screen. For example, numbers can be
made to appear as currency values or percentages by formatting
them accordingly.
Microsoft Excel 2010 provides a variation on formatting known as
conditional formatting. With conditional formatting, cells can be
formatted in different colours schemes. Rather than this formatting
being applied to all cells in a range, it is applied selectively and
based on specific rules. This type of formatting allows you to see,
for example, values that are over a certain amount, or to instantly
spot high and low values based on assigned colouring.
2
Try This Yourself:
Before starting this exercise
Open
E821 Conditional
Formatting_1.xlsx...
Click on [Cancel] to
cancel the formatting
Click on [Cancel] to
cancel the formatting
2
Try This Yourself:
Continue using the previous
Same
2
Try This Yourself:
Continue using the
Same File
Click on Green-Yellow-Red
Colour Scale
UNDERSTANDING SPARKLINES
What do you get when you cross charts with cell be used to represent trends and patterns in the
formatting? Sparklines! Sparklines are a new data in a worksheet. They are accessed from the
feature in Excel 2010. They are like mini-charts Insert tab of the Ribbon.
that are actually placed into a single cell and can
Line Sparkline
Column Sparkline
Win/Loss Sparkline
Each of the Sparklines above charts the figures for the Jan, Feb, and Mar columns to their left. For
example, the Sparkline in cell G4 charts the figures in the range C4:E4.
There are three different types of Sparklines available in Excel 2010, Line, Column, and Win/Loss.
Each of these are shown above. The Line Sparkline displays as a line. The dots in the example
above appear because the Sparklines have been asked to display the highest and lowest values. A
Column Sparkline displays as vertical bars. The Win/Loss Sparkline displays positive values in
one colour above an imaginary line and negative values in another colour below that imaginary line.
While Sparklines are never going to be as versatile as charts there are still a lot of formatting
options that you have at your disposal when working with them. When a cell containing a Sparkline
is selected a Design tab for Sparklines will appear in the Ribbon as shown.
The Design tab for Sparklines allows you to change the type of Sparkline in a cell, to change
formatting options for it such as style and colouring, and to show various high point, low points and
the like. There is also a command here to clear Sparklines from the cell.
CREATING SPARKLINES
Sparklines are created from the Insert tab on stage you do have the option of changing the type
the Ribbon. You have the choice of creating a of Sparkline after it is created. Like other forms of
Line, Column or Win/Loss Sparkline from the charting you will need to select the data series
Insert tab. While it is good to get it right at this before creating the Sparkline.
1
Try This Yourself:
Before starting this exercise
Open
File
EDITING SPARKLINES
Sparklines in Excel 2010 are both easy to Design tab allows you to change the type of
create and easy to edit. When a cell containing a Sparkline in the cell, its formatting and colouring,
Sparkline is selected a Design tab for and to specify things such as high and low points.
Sparklines will appear on the Ribbon. The You can also fill Sparklines to adjacent cells.
4
Try This Yourself:
Continue using the previous
Same
NOTES: