Using Data Analysis and Business Intelligence Tools
Using Data Analysis and Business Intelligence Tools
Consolidating Data
Many times you may have various worksheets where you want to roll up the numbers
into one summary worksheet. Excel offers a built-in tool to help you do that very quickly
and easily: Consolidate Data.
Excel offers two basic ways to perform a data consolidation. One is based on the
position—for example, cell B4 on every worksheet you specify gets added and the total is
placed in cell B4 on the summary worksheet. This is fine if you are 100% sure that cell B4
contains the exact same data on every worksheet.
But we cannot be sure that every worksheet’s cells are going to line up like that. In fact,
they often don’t line up like that. Therefore, the following exercise will walk through
performing a consolidation using the second method Excel offers, which is based on
labels. Excel will attempt to match row and/or column labels and then sum based on
those labels that match in various worksheets.
One key thing has been done to prepare our workbook for this exercise: the range of
cells to be consolidated has been named and the name on every sheet is the same—the
names are scoped to the worksheet. This makes it easier to perform the consolidation,
because we are not required to manually select every consolidation range as we are
building the consolidation. It also makes troubleshooting easier.
1 de 11 14/04/2021, 14:33
OneNote https://euc-onenote.officeapps.live.com/o/onenoteframe.aspx?ui=pt-PT&...
12. Repeat steps 10 and 11 two more times, adding these two named ranges:
’Consol Data Q3’!rgn.DataToConsolidate
’Consol Data Q4’!rgn.DataToConsolidate
13. Select the check boxes for Top row and Left column. The Consolidate dialog box
should look as shown in Figure 3-23.
2 de 11 14/04/2021, 14:33
OneNote https://euc-onenote.officeapps.live.com/o/onenoteframe.aspx?ui=pt-PT&...
inputs to review what would happen if we increase here or decrease there and take
another picture (define a scenario). The process continues until we have defined all of the
scenarios we want to examine. We can then flip between scenarios quickly or even create
a summary report that shows key inputs and outputs for each scenario we defined.
3 de 11 14/04/2021, 14:33
OneNote https://euc-onenote.officeapps.live.com/o/onenoteframe.aspx?ui=pt-PT&...
4 de 11 14/04/2021, 14:33
OneNote https://euc-onenote.officeapps.live.com/o/onenoteframe.aspx?ui=pt-PT&...
Term Description
fv Future value
pv Present value
rate Interest (or discount) rate—must be in the same terms as nper (refer to
next term)
nper Number of periods (usually months or years); this needs to match rate
type Payment is at the end of period (default) or beginning of period (1)
per A specific period number (used in the PPMT and IPMT functions)
values Cells that contain numbers (used in the IRR and MIRR functions)
guess You can begin the RATE and IRR functions with an initial guess for the rate
to shorten the calculation time or if you are sure the rate will be
substantially different than 10%. If you omit the guess, Excel will use 10%
as a default guess.
finance_rate What you’re paying on borrowed money (used in the MIRR function)
reinvest_rat What you’re receiving on invested money (used in the MIRR function)
e
For most other financial functions, the arguments are fairly self-explanatory and you can
guess their meaning from their name. However, here are a handful that might benefit
from some additional comments.
Term Description
factor Used by DDB and VDB—assumed to be 2 (= double declining balance). If you
were to use 3, you would be tripling the straight-line depreciation.
no_switc Used by VDB only—if FALSE or omitted, then once straight-line depreciation
h becomes favorable, Excel will switch to straight-line calculation basis. If TRUE,
then the DDB method is used throughout.
5 de 11 14/04/2021, 14:33
OneNote https://euc-onenote.officeapps.live.com/o/onenoteframe.aspx?ui=pt-PT&...
month Used by DB. It is an optional argument allowing you to specify the number of
months in the first year. If month is omitted, it is assumed to be 12.
basis Number of days in a year for securities calculations. As you type the formula,
Excel displays the available options.
frequenc Used by some of the security analysis functions, this is the number of coupon
y payments per year, but not as a number per se, as an option. In other words,
“4” is the option for quarterly payments, but you cannot enter a frequency of
“12” since that is not a recognized industry standard for coupon payment
frequency. Only annual (1), semiannual (2), and quarterly (4) are acceptable
values for this argument.
Some common financial functions in Excel that use some of the arguments listed and
described above include the following:
Functio Description
n
PMT The payment for a loan based on constant payments and interest rate.
PV The present value of a loan or investment.
FV The future value of an investment that is based on a constant interest rate.
NPER The number of periods for an investment or the number of loan payments,
based on constant payments and interest rate.
IRR The internal rate of return for a series of cash flows (specified in values),
occurring at regular intervals.
6 de 11 14/04/2021, 14:33
OneNote https://euc-onenote.officeapps.live.com/o/onenoteframe.aspx?ui=pt-PT&...
values, based on the entries in the range I6:I11. Notice the scroll bar to the right in
the dialog box—be sure to scroll down so you can fill in the Basis field (Figure 3-28).
Click OK.
7 de 11 14/04/2021, 14:33
OneNote https://euc-onenote.officeapps.live.com/o/onenoteframe.aspx?ui=pt-PT&...
You can use the Query Editor to query data and modify or transform the external data.
The actions you take in the Query Editor don’t change the original source data. You also
can combine data from multiple sources and then manipulate and shape the data as
needed. After transforming the data, you can import it into an Excel table or into the
Power Pivot data model and refresh the data later. When your query is complete, you can
save and share it, or use it to prepare reports.
Take Note The transformations you apply to the data source collectively form
your query. The Query Editor tracks all of your actions in the APPLIED STEPS area of
the Query Settings pane.
9. Click ZIP to select the field in the table. Click the Home tab in the Query Editor and
8 de 11 14/04/2021, 14:33
OneNote https://euc-onenote.officeapps.live.com/o/onenoteframe.aspx?ui=pt-PT&...
then in the Manage Columns group, point to the Remove Columns button (Figure
3-31) and click the top portion of the Remove Columns button. The field is
removed from the table and the action is added to the APPLIED STEPS area of the
Query Settings pane.
9 de 11 14/04/2021, 14:33
OneNote https://euc-onenote.officeapps.live.com/o/onenoteframe.aspx?ui=pt-PT&...
17. SAVE the 03 Transform Solution.xlsx workbook and then CLOSE the workbook.
PAUSE. LEAVE Excel open for the next exercise.
Take Note Power Pivot is built-in to the very structure of Excel 2016. However, it is
treated as an add-in, which must be enabled before the Power Pivot tab will appear in the
Excel Ribbon. This study guide assumes that your instructor has already configured the
machine you are using to have the Power Pivot add-in enabled. For more details on using
the Power Pivot add-in, refer to Lesson 4.
In this exercise, you’ll use OLAP tools in Excel to convert an existing PivotTable to
formulas, so that you can examine the underlying Cube functions of the data model,
including the CUBEMEMBER and CUBEVALUE functions. Additional Cube functions are
also available in Excel—on the Formulas tab, click More Functions and then point to the
Cube category.
10 de 11 14/04/2021, 14:33
OneNote https://euc-onenote.officeapps.live.com/o/onenoteframe.aspx?ui=pt-PT&...
Troubleshooting If you wish to practice using Power Pivot outside the classroom, on
your own personal computer or tablet, please be aware that Microsoft has segmented
the Office 365 (Office 2016) market. Power Pivot is only included in business versions of
Office 365/2016. If you have a Home or Personal version of Office 365, you will not have
the Power Pivot add-in listed among your available add-ins. You would need to purchase
a business version of Office 365 to have access to Power Pivot on your own computer.
Note that Power Pivot is a COM add-in, so if you do have a version of Excel that offers
Power Pivot, you need to look for it in the COM Add-ins list in the Excel Options dialog
box, not the regular Add-ins list.
11 de 11 14/04/2021, 14:33