IT Skill Lab 2 MBA
IT Skill Lab 2 MBA
Objectives
By the end of this lesson, you will be able to:
You will use a Lookup table to populate values in a sales report, then
calculate sales data. Then, you will create an interactive dashboard using
pivot tables, pivot charts, and slicer controls.
1. Open the Pivot Table Data File, save it as Pivot Table Project, click
cell I1 in the Sales Data worksheet, type Product Cost, click in cell
H1 and type Product Price, type Markup in cell J1, then Sales in L1.
click in cell I2, click the AutoSum down arrow, click More functions
1-3
Points in the functions dialog box, type VLOOKUP in the search field. The
VLOOKUP Functions Argument dialog box appears, click the
Lookup_value data range button, click cell E2, click the data range
button to return to the Functions Arguments dialog box, click the
Table-array data range button, click the Product Ledger sheet tab,
select the range A2:D13 for the argument, press the F4 key to make
the value absolute, type 3 in the Col_index_num field, type False in
the Range_lookup field, click OK. You are asking Excel to “look up” the
product cost from the third column of the Product Ledger table for the item
in cell E2. By typing “false” in the Range_lookup field, you are telling Excel
you are looking for an exact match. If you left this field blank, or entered
“true,” Excel would look for similar values. This might be handy when data is
not specific. The Function argument in your formula bar should look like this:
=VLOOKUP(E2,'Product Ledger'!$A$2:$D$13,3,FALSE)
The value in cell I2 should be 0.3.
Use the fill handle to populate the rest of the column. Use the
VLOOKUP function to determine the Product Price for each product
in column J.
The function argument in the formula bar should look like this:
=IF(G2*K2<0,G2*K2,0)
The value in cell M1 should be -35.1.
Use the fill handle to populate the rest of the Sales and Loss
columns. Format the five new columns as Currency. Use AutoSum to
calculate the totals for the Sales and Loss columns. Total Sales
should be $649,329.69 and Total Loss should be -$2,682.90.
You decide that you want to include the loss values within the sales column.
The same IF function you created to calculate loss could be used to
accomplish this, but the Value_if-false field will have the argument to
calculate the product of units sold and product price. Your function argument
would look like this: =IF(G2*K2<0,G2*K2,G2*J2)
3. Select columns A:M, click the Format as Table button and chose a
table style of your liking. The Format As Table dialog box will appear
as below. Make sure that the My table has headers checkbox is
checked. Click OK.
1-3
Points
Before you create a pivot table, you must have your columns in tabular
form. If you are working with an extremely large amount of data, this
process can take a while to tabulate. In this case, the spreadsheet is fairly
small in comparison to many sales reports. Filter buttons will populate the
Header row.
Click any cell in the Sales Data worksheet, click the INSERT tab, click
the Pivot Table button in the Tables group, The Create PivotTable
dialog box will appear. The Table/Range is already populated because you
had clicked on a cell within the worksheet. Otherwise, you would need to
select the range you wanted to analyze. Click the New Worksheet button
to place your pivot table in a new worksheet, then click OK. You are
presented with a new worksheet with a Pivot table area on the left and a
PivotTable fields list on the right.
4. Click the Analyze tab, click PivotChart from the Tools group, click Bar
chart, and click OK. Right-click the Sum of Revenue button, click
1-3 Hide All Field Buttons on Chart, right-click the Y axis values (the one
Points with the names), click Format Axis, and check the box for Categories
in reverse order in the Axis Options section. Click on the X axis
labels, press [Delete], click the Legend, press [Delete], click the
vertical lines, press [Delete], right-click the bars, click Add Data
Labels, click the columns again, click Format Data Series, change the
Gap Width to 50%, Change the chart title to Sales by Region. Your
pivot chart should resemble the one below:
Move the productSold field down to the ROWS area, and move the
Region field to the COLUMNS area.
Filter out SUPA101 and (blank). Format the chart to look as shown
below:
8. Create a blank worksheet, name the worksheet Dashboard, Select all
cells , Change the fill color to a light shade of your choosing, copy
1-4
the charts you create to the Dashboard. Click the Sales by Region
Points chart, click INSERT, click Slicer from the Filters group. Click
productSold, click OK. Click the Percent of Sales chart, click INSERT,
click Slicer, click Region, and click OK. Click the Region slicer, click
the SLICER TOOOLS OPTIONS tab, click the Report Connection
button, check both the Product Percent by Region and the Product
Sales charts, click OK. You can now have slicer control over the charts.
Click the slicers to see the charts data change.
Make sure the blanks are filtered out of your pivot tables. Save and
close the workbook, then submit a copy to your instructor.