AST Unit-3 Dr. Deepa Tyagi
AST Unit-3 Dr. Deepa Tyagi
Conditional formatting, charts that inspire (waterfall, column, line, combo, thermometer, scatter,
histogram, slicer, sparklines), graphics tricks and techniques
The first and the last columns in a typical waterfall chart represent total values. The
intermediate columns appear to float, and show positive or negative change from one period
to another, ending up in the final total value. As a rule, these columns are color-coded for
distinguishing positive and negative values. A bit further in this article you'll know a trick how
to make the intermediate columns float.
A waterfall chart is also known as an Excel bridge chart since the floating columns make a
so-called bridge connecting the endpoints.
Use of Waterfall Chart: These charts are quite useful for analytical purposes. If you need to
evaluate a company profit or product earnings, make an inventory or sales analysis or just
show how the number of your Facebook friends changed during that year, a waterfall chart
in Excel is just what you need.
For Example: Let's create a simple sample table with positive and negative values to
understand the things better. I'll take the sales amount as an example. If you look at the table
below, you'll see that the sales grow during some months, and they fall during others as
compared to the starting position.
Excel bridge chart will be a perfect way to visualize the sales flow over twelve months.
As you can see, it is not difficult at all to manually create a waterfall chart in Excel 2016 -
2010.
Sparklines
Sparklines were introduced in Excel 2010 and are available in all later versions of Excel 2013,
Excel 2016, Excel 2019, and Excel for Office 365.
For Example:
1. Select a blank cell where you want to add a sparkline, typically at the
end of a row of data.
2. On the Insert tab, in the Sparklines group, choose the desired
type: Line, Column or Win/Loss.
3. In the Create Sparklines dialog window, put the cursor in the Data
Range box and select the range of cells to be included in a sparkline
chart.
4. Click OK.
Sparkline types
Microsoft Excel provides three types of sparklines: Line, Column, and Win/Loss.
These sparklines look very much like small simple lines. Similar to a
traditional Excel line chart, they can be drawn with or without markers. You are
free to change the line style as well as the color of the line and markers. We will
discuss how to do all this a bit later, and in the meanwhile just show you an
example of line sparklines with markers:
Column sparkline in Excel
These tiny charts appear in the form of vertical bars. As with a classic column
chart, positive data points are lying above the x-axis and negative data points
below the x-axis. Zero values are not displayed – an empty space is left at a zero
data point. You can set any color you want for positive and negative mini columns
as well as highlight the largest and smallest points.
This type is very much like a column sparkline, except that it does not show the
magnitude of a data point – all bars are of the same size regardless of the original
value. Positive values (wins) are plotted above the x-axis and negative values
(losses) below the x-axis.
To make the most important points in sparklines more noticeable, you can
highlight them in a different color. Additionally, you can add markers for each data
point. For this, simply select the desired options on the Sparkline tab, in
the Show group:
6. Markers – adds markers at each data point. This option is only available for line
sparklines.
As you already know, creating sparklines in Excel is easy and straightforward. The following
tips will help you use them professionally:
• Sparklines can only be used in Excel 2010 and later; in Excel 2007 and earlier, they
are not shown.
• Like full-blown charts, Excel sparklines are dynamic and automatically update when
the data changes.
• Sparklines only include numeric data; text and error values are ignored. If the source
data set has blank cells, a sparkline chart has blanks too.
• A sparkline size is dependent on the cell size. When you change the cell's height or
width, the sparkline adjusts accordingly.
• Unlike traditional Excel charts, sparklines are not objects, they are images in the
background of a cell.
• Having a sparkline in a cell does not prevent you from entering data or formulas in
that cell. You can even use sparklines together with conditional formatting icons to
enhance the visualization capability.
• You can create sparklines for Excel tables and pivot tables too.
• To copy your sparkline charts to another application such as Word or Power Point,
paste them as pictures (Paste > Picture).
• The sparkline feature is disabled when a workbook is opened in the compatibility
mode.
Combo Chart
What is a Combination chart in Excel?
A combination chart is a chart that combines two or more chart types in a single chart.
To create a combination chart, execute the following steps.
4. For the Rainy Days series, choose Clustered Column as the chart type.
Result:
Thermometer Chart
This example teaches you how to create a thermometer chart in Excel. A thermometer
chart shows you how much of a goal has been achieved.
2. On the Insert tab, in the Charts group, click the Column symbol.
5. Right click the blue bar, click Format Data Series and change the Gap Width to 0%.
6. Change the width of the chart.
7. Right click the percentages on the chart, click Format Axis, fix the minimum bound to 0, the
maximum bound to 1 and set the Major tick mark type to Outside.
Result:
Slicer
What is Excel slicer?
Slicers in Excel are graphic filters for tables, pivot tables and pivot charts. Due to their visual
qualities, slicers fit especially well with dashboards and summary reports, but you can use them
anywhere to make filtering data faster and easier.
Slicers were introduced in Excel 2010 and are available in Excel 2013, Excel 2016, Excel 2019
and later versions.
Here's how you can filter the pivot table data by selecting one or more buttons in the slicer box:
Excel slicers vs. PivotTable filters
Basically, slicers and pivot table filters do the same thing - show some data and hide other.
And each method has its strengths and weaknesses:
• Pivot table filters a bit clumsy. With slicers, filtering a pivot table is as simple as
clicking a button.
• Filters are tied to one pivot table, slicers can be connected to multiple pivot tables and
pivot charts.
• Filters are locked to columns and rows. Slicers are floating objects and can be moved
anywhere. For example, you can put a slicer next to your pivot chart or even within the
chart area and have the chart contents updated in real time on a button click.
• Pivot table filters may not work very well on touch screens. Slicers perform great in
many touch screen environments, except Excel mobile (including Android and iOS)
where this feature is not fully supported.
• Pivot table report filters are compact, slicers take up more worksheet space.
• Pivot table filters can be easily automated with VBA. Automating slicers requires a bit
more skills and efforts.
To get started with slicers, please follow the below guidelines that show how to add a slicer
for your Excel table, PivotTable, or PivotChart.
Creating a pivot table slicer in Excel is a matter of seconds. Here's what you do:
As an example, let's add two slicers to filter our pivot table by Product and Reseller:
Two pivot table slicers are created immediately:
In addition to pivot tables, the modern versions of Excel also let you insert a slicer for a
regular Excel table. Here's how:
That's it! A slicer is created and you can now filter your table data visually:
To be able to filter a pivot chart with a slicer, you can actually make a slicer for your pivot
table like explained above, and it will control both the pivot table and the pivot chart.
To integrate a slicer with your pivot chart more closely like shown in the screenshot above,
carry out these steps:
This will insert the already familiar slicer box in your worksheet:
Once you have a slicer, you can use it to filter the pivot chart data straight away. Or, you may
want to make a few improvements, for example, hide the filter buttons on the chart, which
have become redundant since you are going to use the slicer for filtering.
Optionally, you can place the slicer box within the chart area. For this, make the chart area
bigger and the plot arear smaller (simply by dragging the borders), and then drag the slicer
box to the empty space:
If the slicer box gets hidden behind the chart, right-click the slicer, and select Bring to
Front from the context menu.
Excel slicers were designed as user-friendly filter buttons, so their use is simple and intuitive.
The below sections will give you some hints on how to get started.
Once a pivot table slicer is created, simply click on one of the buttons inside the slicer box to
filter your data. The pivot table will update immediately to show only the data that matches
your filter settings.
To remove a specific item from the filter, click the corresponding button in the slicer to
unselect the item.
You can also use a slicer to filter data that are not shown in the pivot table. For example, we
can insert the Product slicer, then hide the Product field, and the slicer will still filter our pivot
table by product:
If multiple slicers are connected to the same pivot table and clicking a certain item inside one
slicer makes some items in the other slicer greyed out, that means there is no data to display.
For example, after we select "John" in the Reseller slicer, "Cherries" in the Product slicer gets
greyed out, indicating that John did not make a single "Cherries" sale:
How to select multiple items in a slicer
To move a slicer to another position in a worksheet, put the mouse pointer over
the slicer until the cursor changes to a four-headed arrow, and drag it to a new
position.