Learn Excel Data Analysis
Learn Excel Data Analysis
Learn Excel Data Analysis
Analysis
Tutorial
Data Analysis with Excel is a comprehensive tutorial that
provides a good insight into the latest and advanced features
available in Microsoft Excel. It explains in detail how to
perform various data analysis functions using the features
available in MS-Excel. The tutorial has plenty of
screenshots that explain how to use a particular feature, in a
step-by-step manner.
This tutorial has been designed for all those readers who
depend heavily on MS-Excel to prepare charts, tables, and
professional reports that involve complex data. It will help
all those readers who use MS-Excel regularly to analyze
data.
FREE EBOOKs
Thank you!
TABLE OF CONTENTS
Data Mining
Business Intelligence
Statistical Analysis
Predictive Analytics
Text Analytics
DATA MINING
BUSINESS INTELLIGENCE
STATISTICAL ANALYSIS
PREDICTIVE ANALYTICS
TEXT ANALYTICS
Answering questions
Test hypotheses
Decision-making
Disproving theories
DATA COLLECTION
Data Collection is the process of gathering information on
targeted variables identified as data requirements. The
emphasis is on ensuring accurate and honest collection of
data. Data Collection ensures that data gathered is accurate
such that the related decisions are valid. Data Collection
provides both a baseline to measure and a target to improve.
DATA PROCESSING
The data that is collected must be processed or organized for
analysis. This includes structuring the data as required for
the relevant Analysis Tools. For example, the data might
have to be placed into rows and columns in a table within a
Spreadsheet or Statistical Application. A Data Model might
have to be created.
DATA CLEANING
The processed and organized data may be incomplete,
contain duplicates, or contain errors. Data Cleaning is the
process of preventing and correcting these errors. There are
several types of Data Cleaning that depend on the type of
data. For example, while cleaning the financial data, certain
totals might be compared against reliable published numbers
or defined thresholds. Likewise, quantitative data methods
can be used for outlier detection that would be subsequently
excluded in analysis.
DATA ANALYSIS
Data that is processed, organized and cleaned would be
ready for the analysis. Various data analysis techniques are
available to understand, interpret, and derive conclusions
based on the requirements. Data Visualization may also be
used to examine the data in graphical format, to obtain
additional insight regarding the messages within the data.
COMMUNICATION
The results of the data analysis are to be reported in a format
as required by the users to support their decisions and
further action. The feedback from the users might result in
additional analysis.
CONDITIONAL FORMATTING
Excel provides you conditional formatting commands that
allow you to color the cells or font, have symbols next to
values in the cells based on predefined criteria. This helps
one in visualizing the prominent values. You will
understand the various commands for conditionally
formatting the cells.
QUICK ANALYSIS
With Quick Analysis tool in Excel, you can quickly perform
various data analysis tasks and make quick visualizations of
the results.
PIVOTTABLES
With PivotTables you can summarize the data, prepare
reports dynamically by changing the contents of the
PivotTable.
DATA VISUALIZATION
You will learn several Data Visualization techniques using
Excel Charts. You will also learn how to create Band Chart,
Thermometer Chart, Gantt chart, Waterfall Chart, Sparklines
and PivotCharts.
DATA VALIDATION
It might be required that only valid values be entered into
certain cells. Otherwise, they may lead to incorrect
calculations. With data validation commands, you can easily
set up data validation values for a cell, an input message
prompting the user on what is expected to be entered in the
cell, validate the values entered with the defined criteria and
display an error message in case of incorrect entries.
FINANCIAL ANALYSIS
Excel provides you several financial functions. However, for
commonly occurring problems that require financial
analysis, you can learn how to use a combination of these
functions.
FORMULA AUDITING
When you use formulas, you might want to check whether
the formulas are working as expected. In Excel, Formula
Auditing commands help you in tracing the precedent and
dependent values and error checking.
INQUIRE
Excel also provides Inquire add-in that enables you compare
two workbooks to identify changes, create interactive
reports, and view the relationships among workbooks,
worksheets, and cells. You can also clean the excessive
formatting in a worksheet that makes Excel slow or makes
the file size huge.
Step 3 − Type the name and press Enter to create the Name.
You can also create Range Names using the New Name
dialog box from Formulas tab.
Step 4 − Select top row as the Text appears in the top row of
the selection.
Now, you can find the largest value in the range with
=Sum(Student Name), as shown below −
You can create names with multiple selection also. In the
example given below, you can name the row of marks of
each student with the student’s name.
Now, you can find the total marks for each student with
=Sum (student name), as shown below.
CREATING NAMES FOR CONSTANTS
Suppose you have a constant that will be used throughout
your workbook. You can assign a name to it directly,
without placing it in a cell.
You can define the Scope of a New Name when you define
the name using New Name dialog box. For example, you
are defining the name Interest_Rate. Then you can see that
the Scope of the New Name Interest_Rate is
the Workbook.
Suppose you want the Scope of this interest rate restricted to
this Worksheet only.
Clear Filter
Names Scoped to Worksheet
Names Scoped to Workbook
Names with Errors
Names without Errors
Defined Names
Table Names
EDITING NAMES
You can use the Edit option in the Name Manager dialog
box to −
You can see, two more values are added in the array, but are
not included in the function as they are not part of Array1.
Step 4 − Change the Name by typing the new name that you
want in the Name Box.
APPLYING NAMES
Consider the following example −
As you observe, names are not defined and used in PMT
function. If you place this function somewhere else in the
worksheet, you also need to remember where exactly the
parameter values are. You know that using names is a better
option.
For example, in the data given below, the Range B6:F6 and
the Range C3:C8 have Cell C6 in common, which actually
represents the marks scored by the student Kodeda, Adam in
Exam 1.
You can make this more meaningful with the Range
Names.
CREATE TABLE
To create a table from the data you have on the worksheet,
follow the given steps −
Note − If you do not check this box, your table will have
Headers – Column1, Column2, …
TABLE NAME
Excel assigns a name to every table that is created.
Step 4 − Click the Table Name box. Clear the Name and
type Emp_Data.
The Name Manager dialog box appears and you can find
the Table Names in your workbook.
In the Name box, you can find the Column Header, and in
the Refers to box,you will
find Emp_Data[[#Headers],[EmployeeID]].
As you observe, this is a quick way of defining Names in a
Table.
However, while doing so, you also require the table headers
to identify which value belongs to which column. Excel
automatically provides a smooth way of doing this. As you
scroll down your data, the column letters of the worksheet
themselves get converted to table headers.
In the worksheet given below, the column letters are
appearing as they are and the table headers are in row 2. 21
rows of 290 rows of data are visible.
Scroll down to see the table rows 25 – 35. The table headers
will replace the column letters for the table columns. Other
column letters remain as they are.
Your table looks as follows. You can also check the range
included in the table in the Name Manager dialog box −
REMOVE DUPLICATES
When you gather data from different sources, you probably
can have duplicate values. You need to remove the duplicate
values before going further with analysis.
Look at the following data where you have information
about various products of various brands. Suppose, you
want to remove duplicates from this data.
Click the table.
On the DESIGN tab, click Remove Duplicates in
the Tools group on the Ribbon. The Remove
Duplicates dialog box appears.
CONVERT TO RANGE
You can convert a table to a Range.
You can check / uncheck these boxes to see how your table
looks. Finally, you can decide on what options suit your
data.
TABLE STYLES
You have several table styles to choose from. These styles
can be used depending on what color and pattern you want
to display your data in the table.
Move your mouse on these styles to have a preview of your
table with the styles. Finally, you can decide on what style
suit your data.
Delimited by a character, or
Aligned in columns with spaces between each field.
Select Delimited.
Click Next.
Step 2 − Convert Text to Columns Wizard - Step 2 of 3
appears.
Some of the text functions that are useful for this purpose
are −
You can observe that the values in the price column are text
values. To perform calculations on these values, you have to
format the corresponding cells. You can look at the section
given below to understand formatting text.
Date Formats
o Date in Serial Format
o Date in different Month-Day-Year Formats
Converting Dates in Serial Format to Month-Day-
Year Format
Converting Dates in Month-Day-Year Format to
Serial Format
Obtaining Today's Date
Finding a Workday after specified Days
Customizing the Definition of a Weekend
Number of Workdays between two given Dates
Extracting Year, Month, Day from Date
Extracting Day of the Week from Date
Obtaining Date from Year, Month and Day
Calculating Number of Years, Months and Days
between two Dates
DATE FORMATS
Excel supports Date values in two ways −
Serial Format
In different Year-Month-Day Formats
For example, you can specify the 15th working day from
today (the screenshot below is taken on 16th May 2016)
using the Functions TODAY and WORKDAY.
Suppose 25th May 2016 and 1st June 2016 are holidays.
Then, your calculation will be as follows −
CUSTOMIZING THE DEFINITION OF A
WEEKEND
By default, weekend is Saturday and Sunday, i.e. two days.
You can also optionally define your weekend with
the WORKDAY.INTL function. You can specify your own
weekend by a weekend-number that corresponds to the
weekend days as given in the table below. You need not
remember these numbers, because when you start typing the
function, you get a list of numbers and the weekend days in
the drop-down list.
Time Formats
o Time in Serial Format
o Time in Hour-Minute-Second Format
Converting Times in Serial Format to Hour-Minute-
Second Format
Converting Times in Hour-Minute-Second Format to
Serial Format
Obtaining the Current Time
Obtaining Time from Hour, Minute and Second
Extracting Hour, Minute and Second from Time
Number of hours between Start Time and End Time
TIME FORMATS
Excel supports Time Values in two ways −
Serial Format
In various Hour-Minute-Second Formats
You can also combine Date and Time in the same cell. The
serial number is the number of days after January 1, 1900,
and the time fraction associated with the given time. For
example, if you type May 17, 2016 6 AM, it gets converted
to 42507.25 when you format the cell as General.
You can also specify date and time together. For example, if
you type May 17, 2016 7:25 in a cell, it will be displayed as
5/17/2016 7:25 and it represents 5/17/2016 7:25:00 AM.
4:00:00 PM
16:00
4:00 PM
16:00:00
5/17/16 4:00 PM
5/17/16 16:00
CONVERTING TIMES IN SERIAL FORMAT TO
HOUR-MINUTE-SECOND FORMAT
To convert serial time format to hour-min-sec format follow
the steps given below −
You can extract hour, minute and second from a given time
using the Excel functions HOUR, MINUTE and SECOND.
NUMBER OF HOURS BETWEEN START TIME
AND END TIME
C4 is formatted as Time
C5 and C6 are formatted as Number.
EXAMPLE
Excel applies the format you chose, i.e. the green color to all
the cells that satisfy the condition. If the content of a cell
does not satisfy the condition, the formatting of the cell
remains unchanged. The result is as expected, only for the
salespersons who have met the target, the cells are
highlighted in green – a quick visualization of the analysis
results.
Data Bars
Color Scales
Icon Sets
DATA BARS
You can use colored Data Bars to see the value in a cell
relative to the values in the other cells. The length of the
data bar represents the value in the cell. A longer bar
represents a higher value, and a shorter bar represents a
lower value. You have six solid colors to choose from for
the data bars – blue, green, red, yellow, light blue and
purple.
You can also format data bars such that the data bar starts in
the middle of the cell, and stretches to the left for negative
values and stretches to the right for positive values.
COLOR SCALES
You can use Color Scales to see the value in a cell relative
to the values in the other cells in a given range. As in the
case of Highlight Cells Rules, a Color Scale uses cell
shading to display the differences in cell values. A color
gradient will be applied to a range of cells. The color
indicates where each cell value falls within that range.
Selected cells
Current Worksheet
Selected Table
Selected PivotTable
Follow the given steps −
MANAGE RULES
You can Manage Rulesfrom the Conditional Formatting
Rules Manager window. You can see formatting rules for
the current selection, for the entire current worksheet, for the
other worksheets in the workbook or the tables or
PivotTables in the workbook.
text (A to Z or Z to A)
numbers (smallest to largest or largest to smallest)
dates and times (oldest to newest and newest to
oldest)
a custom list (E.g. Large, Medium, and Small)
format, including cell color, font color, or icon set
Sort criteria for a table are saved with the workbook such
that you can reapply the sort to that table every time you
open the workbook. Sort criteria are not saved for a range of
cells. For multicolumn sorts or for sorts that take a long time
to create, you can convert the range to a table. Then, you can
reapply the sort when you open a workbook.
SORT BY TEXT
You can sort a table using a column containing text.
SORT BY NUMBERS
To sort the table by the column ManagerID that contains
numbers, follow the steps given below −
The next step is to sort the table with this Custom List.
Text
Number
Date
Time
SORT BY ROWS
You can sort a table by rows also. Follow the steps given
below −
Selected values
Text filters if the column you selected contains text
Date filters if the column you selected contains dates
Number filters if the column you selected contains
numbers
Number filters if the column you selected contains
numbers
Font color if the column you selected contains font
with color
Cell icon if the column you selected contains cell
icons
Advanced filter
Using slicers
You can filter this data such that only those Rows wherein
the Title is “Manager” will be displayed.
Click the arrow next to the column header Title. From the
drop-down list, click Text Filters. Text filter options
appear.
Select Contains from the available options. The Custom
AutoFilter dialog box opens. Type Manager in the Box next
to Contains.
Click OK. Only the rows where Title contains Manager and
HireDate is prior to 1/1/2011 will be displayed.
FILTER BY NUMBERS
Consider the following data −
You can filter this data such that only those rows where
Total Marks > 850 can be displayed.
Click OK. Only the rows wherein the total marks are greater
than 850 will be displayed.
FILTER BY CELL COLOR
If the data has different cell colors or is conditionally
formatted, you can filter by the colors that are displayed in
your table.
REAPPLY FILTER
ADVANCED FILTERING
You can use Advance Filtering if you want to filter the data
of more than one column.
You can select / deselect the values in the Slicers and you
find that the data is automatically updated in the table. To
choose more than one value, hold down the Ctrl key, and
pick the values that you want to display.
SUBTOTALS
You can obtain the sum of sales location wise
using Subtotal.
NESTED SUBTOTALS
You can obtain the sum of sales by each salesperson,
location wise using Nested Subtotals.
Click Subtotal.
CHARTS
Charts are used to depict the data pictorially. There are
several types of Charts to suit different types of data.
TOTALS
TABLES
SPARKLINES
Sparklines are tiny charts that you can show alongside your
data in single cells. They provide a quick way to see trends.
QUICK ANALYSIS WITH TOTALS
Click on TOTALS in the Quick Analysis Toolbar.
Row-
wise
Column-wise
Example
We will analyze the data of the votes polled in an election
for five candidates. The counting is done in four rounds.
Following is the data.
SUM
Ensure that the row below the data is empty. Otherwise, you
will get a message saying that there is already data present
there and you will only have two options, either replace the
existing data or cancel the operation.
In the row below the selected data, the sum of each column
of the data is displayed. The caption Sum is also
automatically provided. This means the total count of votes
in each round for all the candidates is displayed.
AVERAGE
In the column next to the selected data, the sum of each row
of the data is displayed. The column header Sum is also
automatically provided. This means the total number of
votes polled for each candidate in all the rounds is
displayed.
Excel Data Analysis -
Lookup Functions
You can use Excel functions to −
Where
lookup_value − is the value you want to look up.
Lookup_value can be a value or a reference to a cell.
Lookup_value must be in the first column of the
range of cells you specify in table_array
table_array − is the range of cells in which the
VLOOKUP will search for the lookup_value and the
return value. table_array must contain
o the lookup_value in the first column, and
o the return value you want to find
table_array −
Note that the first column marks based on which the grades
are obtained is sorted in ascending order. Hence, using
TRUE for range_lookup argument you can get approximate
match that is what is required.
table_array −
Name this array as ProductInfo.
EXAMPLE
Let us take the example of product information. Suppose the
array looks as follows −
Where
table_array −
Note that the first row marks based on which the grades are
obtained is sorted in ascending order. Hence, using
HLOOKUP with TRUE for range_lookup argument, you
can get the Grades with approximate match and that is what
is required.
>= 35 >=60
< >= 50
Marks and < and < >= 75
35 and < 60
50 75
Pass Third Second First First Class with
Fail
Category Class Class Class Distinction
Consider the following sales data, wherein you find the sales
in each of the North, South, East and West regions by the
salespersons who are listed.
Name the array as SalesData.
CREATING PIVOTTABLE
To create PivotTables, ensure the first row has headers.
PIVOTTABLE FIELDS
The headers in your data table will appear as the fields in the
PivotTable.
You can select / deselect them to instantly change your
PivotTable to display only the information you want and in
a way that you want. For example, if you want to display the
account information instead of order amount information,
deselect Order Amount and select Account.
PIVOTTABLE AREAS
You can even change the Layout of your PivotTable
instantly. You can use the PivotTable Areas to accomplish
this.
You can just drag the fields across these areas and observe
the PivotTable layout as you do it.
FILTERS
You can assign a Filter to one of the fields so that you can
dynamically change the PivotTable based on the values of
that field.
Click the arrow in the box to the right of the filter region. A
drop-down list with the values of the field region appears.
Check the option Select Multiple Items. Check
boxes appear for all the values.
Select South and West and deselect the other values
and click OK.
SLICERS
You can use Slicers to have a better clarity on which items
the data was filtered.
ANALYZE
DESIGN
ANALYZE
Some of the ANALYZE Ribbon commands are −
DESIGN
Some of the DESIGN Ribbon commands are −
PivotTable Layout
o Options for Sub Totals
o Options for Grand Totals
o Report Layout Forms
o Options for Blank Rows
PivotTable Style Options
PivotTable Styles
You can observe that only the items below East are
collapsed. The rest of the PivotTable items are as they are.
Click the Expand symbol to the left of East. All the items
below East will be displayed.
USING ANALYZE ON THE RIBBON
You can insert blank rows from the DESIGN tab also.
Click the DESIGN tab.
Click Report Layout in Layout group.
Select Show in Outline Form in the drop-down list.
Hover the mouse over the PivotTable Styles. A
preview of the style on which the mouse is placed
will appear.
Select the Style that suits your report.
In this chapter, you will get to know how to use Excel charts
and Excel formatting features on charts that enable you to
present your data analysis results with emphasis.
Use Vertical Columns for the target values and a Line with
Markers for the actual values.
Click Combo.
Change the Chart Type for the series Actual to Line
with Markers. The preview appears under Custom
Combination.
Click OK.
Check the Box Secondary Axis to the right of the
Series No. of Units and click OK.
Chart Elements
Chart Styles
Chart Filters
The columns are color coded so that you can quickly tell
positive from negative numbers. The initial and the final
value columns start on the horizontal axis, while the
intermediate values are floating columns. Because of this
look, Waterfall Charts are also called Bridge Charts.
SPARKLINES
Sparklines are tiny charts placed in single cells, each
representing a row of data in your selection. They provide a
quick way to see trends.
PIVOTCHARTS
Pivot Charts are used to graphically summarize data and
explore complicated data.
A PivotChart shows Data Series, Categories, and Chart
Axes the same way a standard chart does. Additionally, it
also gives you interactive filtering controls right on the chart
so that you can quickly analyze a subset of your data.
A PivotTable.
A Data Table as a standalone without PivotTable.
Probability
Impact
Risk Category
Risk Source
Status
Category Values
End-Users
Customer
Management
Schedule
Schedule
Environment
Product
Project
Click in the cell for which you have set Data Validation
criteria. The Input message appears. The dropdown button
appears on the right side of the cell.
The input message is correctly displayed.
Type People in the cell and press Enter. Error message that
you have set for the cell will be displayed.
Verify the Error message.
You have an option to either Retry or Cancel. Verify
both the options.
You have successfully set the Data Validation for the cell.
Click in the cell for which you have set Data Validation
criteria. Input message appears. The drop-down button
appears on the right side of the cell.
The input message is displayed correctly.
Click on the cell for which you have set Data Validation
criteria. Input message appears. In this case, there will not
be a dropdown button because the input values are set to be
in a range and not from list.
The input message is correctly displayed.
Type 6 in the cell and press Enter. The Error message that
you have set for the cell will be displayed.
You have successfully set the Data Validation for the cell.
Click OK.
Shade the cells G6-G15 to indicate they are
calculated values.
WRAP-UP
In this chapter, you will learn where and how you can use
these functions for your analysis.
WHAT IS ANNUITY ?
Note that −
EXAMPLE
EMI ON A LOAN
In Excel, you can calculate the EMI on a loan with the PMT
function.
To get
DECISIONS ON INVESTMENTS
When you want to make an investment, you compare the
different options and choose the one that yields better
returns. Net present value is useful in comparing cash flows
over a period of time and deciding which one is better. The
cash flows can occur at regular, periodical intervals or at
irregular intervals.
NPV function assumes that the cash flows are at the end of
the year. If the cash flows occur at different times then you
have to take into account that particular factor along with
the calculation with NPV.
Suppose the cash flows occur at the end of the year. Then
you can straight away use the NPV function.
Arrange your data with the dates and the cash flows.
UNIQUE IRR
If IRR exists and is unique, it can be used to choose the best
investment among several possibilities.
As you observe, the IRR has a unique value for the different
guess values.
MULTIPLE IRRS
In certain cases, you may have multiple IRRs. Consider the
following cash flows. Calculate IRR with different guess
values.
You will get the following results −
You can observe that there are two IRRs - -9.59% and
216.09%. You can verify these two IRRs calculating NPV.
For both -9.59% and 216.09%, NPV is 0.
NO IRRS
In certain cases, you may not have IRR. Consider the
following cash flows. Calculate IRR with different guess
values.
You will get the result as #NUM for all the guess values.
The result #NUM means that there is no IRR for the cash
flows considered.
You have already seen that NPV will enable you to make
financial decisions. However, IRR and NPV will not always
lead to the same decision when projects are mutually
exclusive.
Consider −
In this chapter, you will learn how you can accomplish this
in easy steps. You are going to summarize results from April
2015 to March 2016, i.e. financial year 2015-16.
=sum(‘East:West’!G7)
Note that you are still in the East worksheet. Press Enter.
=SUM(East:West!G7)
REMOVING ARROWS
TRACING DEPENDENTS
Dependent cells contain formulas that refer to other cells.
That means, if the active cell contributes to a formula in
another cell, the other cell is a dependent cell on the active
cell.
EVALUATING A FORMULA
To find how a complex formula in a cell works step by step,
you can use Evaluate Formula command.
=SQRT (1 + C2)*C10
1.09544511501033*4976.8518518515 is underlined
showing it as next step. Click Evaluate.
ERROR CHECKING
It is a good practice to do an error check once your
worksheet and/or workbook is ready with calculations.
INQUIRE COMMANDS
Let us learn about the INQUIRE commands.
The Save As dialog box appears. You can save the results to
an Excel workbook. Note that only .xlsx file type is
available.
If you need the results in another application, you can do it
by copying it to Clipboard.
In the Results pane, for each of the cells with formula with
numeric values, worksheet name, cell address and formula
are displayed.
Click the Excel Export button. The Save As dialog box
appears.
Next time when you need to use any of these files for
comparing or analyzing, you do not have to key in the
passwords.
DATA CONSOLIDATION
WHAT-IF ANALYSIS
What-If Analysis provides you tools to handle the following
data analysis situations −
DATA MODEL
Data Model in Excel is used to integrate data from multiple
tables in the current workbook and / or from the imported
data and / or from the data sources connected to the
workbook through data connections. Data model is used
transparently in PivotTable, PivotChart, PowerPivot and
Power View reports.
You can select a theme for your report that best portrays
your data. You can change the font and text size so that your
report becomes easily readable.
Step 6 − Repeat the steps 1–6 to add the data ranges from
the workbooks – South-Sales.xlsx and West-Sales.xlsx.
Top row.
Left column.
Data Tables
Scenario Manager
Goal Seek
DATA TABLES
A Data Table is a range of cells in which you can change
values in some of the cells and come up with different
answers to a problem. For example, you might want to know
how much loan you can afford for a home by analyzing
different loan amounts and interest rates. You can put these
different values along with the PMT function in a Data
Table and get the desired result.
SCENARIO MANAGER
A scenario is a set of values that Excel saves and can
substitute automatically in cells on a worksheet.
GOAL SEEK
Goal Seek is useful if you know the result that you want
from a formula, but not sure what input value the formula
needs, to get that result. For example, if you want to borrow
a loan and you know the loan amount, tenure of loan and the
EMI that you can pay, you can use Goal Seek to find the
interest rate at which you can avail the loan.
Goal Seek can be used only with one variable input value. If
you have more than one variable for input values, you can
use the Solver add-in.
SOLVER
Solver comes with Excel as an add-in. You can use Solver
to find an optimal value for a formula in a cell called the
target cell on a worksheet.
Solver works with a group of cells that are related to the
formula in the target cell. Solver adjusts the values in the
adjustable cells that you specify, to produce the result that
you specify, from the target cell formula.
Example
You can see that the cells in column C are named as given in
the corresponding cells in column D.
You can see that the Column input cell is taken as $C$2.
Click OK.
The Data Table is filled with the calculated results for each
of the input values as shown below −
If you can pay an EMI of 54,000, you can observe that the
interest rate of 12.6% is suitable for you.
Example
You can see that the cells in the column C are named as
given in the corresponding cells in the column D.
The Data Table gets filled with the calculated results for
each combination of the two input values −
SCENARIOS
A scenario is a set of values that Excel saves and can
substitute automatically on your worksheet. You can create
and save different groups of values as scenarios on a
worksheet and then switch between these scenarios to view
the different results.
After you have all the scenarios you need, you can create a
scenario summary report −
SCENARIO MANAGER
Scenario Manager is one of the What-if Analysis tools in
Excel.
Step 3 − Select the output cells, called the result cells that
you want to track. These cells contain formulas in the initial
set of values. The formulas use the changing input cells.
The steps for setting up the initial values for Scenarios are −
As you can see that the input cells and the result cells are in
column C with the names as given in column D.
CREATING SCENARIOS
After setting up the initial values for the Scenarios, you can
create the scenarios using Scenario Manager as follows −
Scenario summary.
Scenario PivotTable report.
In the Scenario Summary dialog box, you can find these two
Report types.
Select Scenario summary under Report type.
SCENARIO SUMMARY
In the Result cells box, select the cell C6 (Here, we had put
the PMT function). Click OK.
Book
Sheet
DISPLAYING SCENARIOS
Suppose you are presenting your scenarios and you would
like to dynamically switch from one scenario to another and
display the set of input values and result values of the
corresponding scenario.
Goal Seek works only with one variable input value. If you
have more than one input value to be determined, you have
to use the Solver add-in. Refer to the chapter – Optimization
with Excel Solver in this tutorial.
You can use Goal Seek to find the interest rate at which you
can borrow the loan as follows −
Excel computes the EMI with the PMT function. The table
now looks like −
Step 2 − Type EMI in the Set cell box. This box is the
reference for the cell that contains the formula that you want
to resolve, in this case the PMT function. It is the cell C6,
which you named as EMI.
As you can observe, Goal Seek found the solution using cell
C6 (containing the formula) as 12% that is displayed in the
cell C2, which is the interest rate. Click OK.
SOLVING STORY PROBLEMS
You can solve story problems easily with Goal Seek. Let us
understand this with the help of an example.
EXAMPLE
You can use Goal Seek to find the solution. Follow the steps
given below −
Revenue = Expenses, or
Revenue – Expenses = 0
EXAMPLE
You need to find at which price they should sell the toys to
break even.
LP SIMPLEX
EVOLUTIONARY
DEFINING A PROBLEM
Excel also gives you the options to put the data in your
workbook −
Existing worksheet
New worksheet
You can try each one of the options to view the data you are
importing, and check how the data appears in your
workbook −
Step 4 − Enter the URL of the web site from where you
want to import data, in the box next to Address and click
Go.
Step 5 − The data on the website appears. There will be
yellow arrow icons next to the table data that can be
imported.
Step 6 − Click the yellow icons to select the data you want
to import. This turns the yellow icons to green boxes with a
checkmark as shown in the following screen shot.
Step 7 − Click the Import button after you have selected
what you want.
Step 2 − Copy the data from the web page and paste it on
the worksheet.
Step 10 − In this dialog box, you can set column data format
for each of the columns.
Step 11 − After you complete the data formatting of
columns, click Finish. The Import Data dialog box appears.
You will observe the following −
You can import data from any of these data sources into
Excel.
You can either refresh only the selected data or all the data
connections in the workbook at once.
Step 1 − Click any cell in the table that contains the link to
the imported data file.
Step 4 − Select Refresh All from the dropdown list. All the
data connections in the workbook will be updated.
AUTOMATICALLY REFRESH DATA WHEN A
WORKBOOK IS OPENED
You might want to have access to the recent data from the
data connections to your workbook whenever your
workbook is opened.
Step 1 − Click any cell in the table that contains the link to
the imported data file.
Step 1 − Click any cell in the table that contains the link to
the imported data file.
You can optionally add tables to the Data Model, when you
import data from the following data sources −
If you want to add the data you are importing to the Data
Model, check the box.
The table Product Backlog that you added to the Data Model
appears as a sheet in PowerPivot window. Each row in the
table is a record and you can go back and forth the records
using the left and right arrow buttons at the bottom of the
window.
Click the Linked Table tab in the PowerPivot
window.
Click Go to Excel Table.
The Excel data window appears.
Add a new data table to the Data Model with the following
steps.
In the PivotTable Fields list, you will find all the tables that
you imported and the fields in each of them. If the fields are
not visible for any table,
Click on the arrow next to that table in the
PivotTable Fields list.
The fields in that table will be displayed.
You can see how easily you can create this report in few
steps.
You can see that the newly added table- Sports is also
visible in the PivotTable Fields list.
Here, observe that all the tables in the Data Model are
visible in the PowerPivot window, irrespective of whether
they are present as worksheets in the workbook or not.
Click the Medals tab to view the Medals table. The field
DisciplineEvent is available in the Medals table also. Hence,
you can create a relationship using the field DisciplineEvent
as follows −
Disciplines
Events
Medals
Medal Count:=COUNTA([Medal])
You can observe that the medal count formula appears in the
formula bar and to the left of the formula bar, the column
name Medal is displayed.
You will get a Power View message that the Data Model is
changed and if you click OK, the changes will be reflected
in your Power View. Click OK.
In the Power View Sheet, in the Power View Fields list, you
can observe the following −
Now, you can explore the data to find the countries that
scored more than 300 medals. You can also find the
corresponding sports and have subtotals.
Once again, you can observe that in the Matrix view, the
results are legible.
EXPLORING DATA WITH CARD
VISUALIZATION
In a card visualization, you will have a series of snapshots
that display the data from each row in the table, laid out like
an index card.
You can observe that in the Power View Fields list, both the
tables that are in the workbook are displayed. However, in
the Power View, only the active table (Sales) fields are
displayed since only the active data table fields are selected
in the Fields list.
You can observe that in the Power View, Salesperson ID is
displayed. Suppose you want to display the Salesperson
name instead.
Stacked Bar.
100% Stacked Bar.
Clustered Bar.
Stacked Column.
100% Stacked Column.
Clustered Column.
You can convert a Table Visualization to Column Chart
Visualization as follows −
In the Table, only the information for GER and Men will be
displayed.
EXPLORING WITH SIMPLE PIE CHARTS
Pie charts in Power View are simple or sophisticated. You
will learn simple Pie charts in this section. You will learn
sophisticated Pie charts in the next section.
In the Pie chart, in the Power View Fields list, drag the field
Gender from COLOR area to SLICES area.
You will get the Scatter Chart Visualization, with the data
points displayed as circles of same size, showing how the
Count of Event and Medal Count values are related for each
sport.
Click the LAYOUT tab on the Ribbon.
Click Data Labels in the Labels group.
Select Right from the drop-down list. The Data
labels appear for the data points.
The sport Wrestling has less number of medals in more
number of events as compared to the sport Aquatics that has
more number of medals in less number of events.
Place the cursor on the slice with red color (as you
can make out that red represents gold in the Legend).
Click it.
You can have Line charts, Pie charts, Bar charts and
Column charts as Multiples.
You can arrange the Multiples horizontally or
vertically.
HORIZONTAL MULTIPLES
You can have the Multiples Visualization with Horizontal
Multiples also as follows −
Click on the blue color slice one of the Pie charts (as blue is
color for Gold as per the Legend). In all the Pie charts, only
the blue slices are highlighted and other slices are grayed.
Click on the blue slice on one of the Pie charts. The blue
slices in all the Pie charts are highlighted so that you can
compare the gold medal counts across the countries.
BAR CHARTS AS MULTIPLES
You can choose Bar charts also for Multiples visualization.
With Grid Height of 6 and Grid Width of 2, you will get the
following −
You can have Clustered Bar charts also for this
visualization.
COLUMN CHARTS AS MULTIPLES
You can choose Column charts also for Multiples
visualization.
With Grid Height of 2 and Grid Width of 6, you will get the
following −
You can have Clustered Column charts also for this
visualization.
WRAP-UP
Now, you can drill down the data one level at a time as
follows −
Now, you can drill down the data one more level as follows
−
Now, you can drill down the data one more level as follows
−
When you change the theme, the new theme applies to all
the Power View visualizations in the report. Further, you
can add background images, choose background formatting,
format numbers, and change the Font or the text size.
You can have three views in the report for the best portrayal
of the data points in this case −
Now that the report layout is ready, you can start making it
appealing. However, you need to keep two points in mind
during this task −
You will get many options to choose from. If you are not
sure about the appropriate one, just play around with some
to find how the display looks.
Key Performance
Indicators
Key Performance Indicators (KPI) are a set of quantifiable
measures that an organization uses to measure its
performance over time. KPIs are normally used to evaluate
the success of an organization as a whole or department-
wise (e.g. sales, finance, etc.). You need to define the KPIs
based on the organization objectives and monitor them from
time to time to track the progress.
KPIS IN EXCEL
You can analyze performance against the set target
with PowerPivot. For e.g., a PowerPivot KPI could
be used to determine for each year and salesperson
how his actual sales compared to his sales target.
You can explore and visualize the same KPI with
Power View.
You can also define new KPIs and /or edit them in
Power View.
You can produce aesthetic reports with KPIs in
Power View.
BASE VALUE
STATUS
KPIS IN POWERPIVOT
You can define KPIs in PowerPivot as follows −
To set the Base Value, you need a calculated field for Sales
Amount.
Add the calculated field in the Sales table for Sales
Amount column in the Data Model as follows −
icon .
The three KPI parameters – Value, Goal and Status
appear as fields under Total Sales KPI.
Thank you!