E09 and E10 Script

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Exploring Microsoft Excel 2016, Session 9 & 10

This set of exercises mirrors the hands-on exercises throughout this chapter, following the
same steps as the textbook exercises but based on a different scenario. It may be useful for in-
class demonstration.

GetFit Fitness Equipment


You have been hired as a payroll consultant by GetFit Fitness Equipment, an
equipment sales company that sells to gyms in the southeastern United
States. GetFit has locations in Atlanta, Dallas, and Nashville with a manager
at each location who oversees several sales representatives. You have an
Excel workbook that contains names, locations, titles, hire dates, and salaries
for 20 managers and sales reps. To prepare for your salary analyses, you
downloaded salary data from the corporate database into your workbook.
The GetFit HR manager wants you to perform several tasks based on
locations and job titles. You will use logical functions to calculate annual
bonus amounts and database functions to help analyze the data. Finally, you
will review financial aspects of automobiles purchased for each of the three
managers.
Hands-On Exercise 1: Date, Logical, and Lookup Functions
As a payroll consultant for GetFit Fitness, you have been asked to identify underpaid sales reps
to bring their salaries up to a new minimum standard within the company. You also want to
calculate annual bonus amounts based on hire dates as well as create a quick search lookup field
to allow instant access to individual information.
Steps:
1. Use the YEARFRAC Function
a. Open e07_script_data and save it as e07_script_solution.
b. Click cell F7 in the 1-Logic-Lookup worksheet.
c. Click the Formulas tab, click Date & Time in the Function Library group, scroll through the
list of functions, and then select YEARFRAC.
d. Click cell E7 to enter it in the Start_date box.
e. Click in the End_date box and click cell F2.
f. Press F4 twice to change the reference from F2 to F$2. Click OK.
g. Click the Home tab, click the Number format arrow in the Number group, and then select
Number. Click Decrease Decimal in the Number group one time. Copy the function to the
range F8:F26. Change the width of column F to 11.43. Save the workbook.
2. Create a Nested IF Function
a. Click cell H7, click the Formulas tab, click Logical in the Function Library group, and then
select IF.
b. Type E7<I$2 in the Logical_test box.
c. Type G7*J$2 in the Value_if_true box.
d. Click in the Value_if_false box, click the Name Box arrow above column A, and then
select IF.
e. Type E7<=I$3 in the Logical_test box, type G7*J$3 in the Value_if_true box, type G7*J$4
in the Value_if_false box, and then click OK.
f. Click the Home tab, click the Accounting Number Format in the Number group, and then
click Decrease Decimal two times in the Number group.
g. Double-click the cell H7 fill handle to copy the function to the range H8:H26. Save the
workbook.
3. Nest an AND Function Inside an IF Function
a. Click cell I7, click the Formulas tab, click Logical in the Function Library group, and then
select IF.
b. Type AND(D7=”manager”,G7<F$3) in the Logical_text box.
c. Type “Due for raise” in the Value_if_true box.
d. Type “NA” in the Value_if_false box.
e. Click OK, double-click the cell I7 fill handle to copy the formula to the range I8:I26,
change the width of column I to 11.86, and then save the workbook.
4. Create a Lookup Field Using Index and Match Functions
a. Click cell F1, click Lookup & Reference in the Function Library group, and then select
INDEX.
b. Select array,row_num,column_num and click OK.
c. Type A7:I26 in the Array box.
d. Type MATCH(B1,A7:A26,0) in the Row_num box.
e. Type 4 in the Column_num box. Click OK.
f. Click cell B1, type 6370, and then press Enter. Save the workbook.
Hands-On Exercise 2: Database Filtering and Functions
You have been asked by GetFit to create criteria and output ranges to see a list of records that
meet conditions specified and calculate summary statistics based on filtered results.
Steps: 1. Create Criteria and Output Ranges
a. Open e07_script_solution.
b. Click the 2-Database sheet tab.
c. Select the range A2:F2 and click Copy in the Clipboard group on the Home tab.
d. Click cell A25 and click Paste in the Clipboard group on the Home tab.
e. Click cell A30, paste another copy of the data, and then press Esc. Save the workbook.
2. Apply an Advanced Filter
a. Type Atlanta in cell C26 and type Sales Rep in cell D26.
b. Click cell D19 (or any cell within the data set).
c. Click the Data tab and click Advanced in the Sort & Filter group.
d. Click Copy to another location.
e. Click in the List range box and select the range A2:F22.
f. Click in the Criteria range box and select the range A25:F26.
g. Click in the Copy to box, select the range A30:F30, and then click OK.
h. Scroll down to see the output records. Save the workbook.
3. Insert a DAVERAGE Function
a. Click cell I25, click the Formulas tab, and then click Insert Function in the Function Library
group.
b. Click the Or select a category arrow, select Database, select DAVERAGE in the Select a
function list, and then click OK.
c. Select the range A2:F22 to enter that range in the Database box.
d. Click in the Field box, type Salary, and then press Tab.
e. Select the range A25:F26 to enter in the Criteria box. Click OK. Save the workbook.
4. Use DMIN, DMAX, and DCOUNT Functions
a. Click cell I26 and click Insert Function in the Function Library group.
b. Select DMIN in the Select a function list and click OK.
c. Select the range A2:F22 in the Database box, select the cell F2 in the field box, select the
range A25:F26 in the Criteria box, and then click OK.
d. Click cell I27 and click Insert Function in the Function Library group. Select DMAX in the
Select a function list and click OK.
e. Select the range A2:F22 in the Database box, select the cell F2 in the field box, select the
range A25:F26 in the Criteria box, and then click OK.
f. Type =DCOUNT(A2:F22,”Salary”,A25:F26) in cell I28 and then press Enter. Save the
workbook.
Hands-On Exercise 3: Financial Functions
The location managers are asking for new company cars. You have been told by the company’s
CFO that they can afford $550 monthly payments based on a 4.25% APR for four-year loans.
Prepare a loan amortization table and running totals for interest and principal repayment.
Steps:
1. Calculate the Present Value
a. Open e07_script_solution.
b. Click the 3-Finance sheet tab.
c. Click cell E3, type =B3/B5, and then press Enter.
d. Type =B4*B5 in cell E4 and press Enter.
e. Click cell E2, click Financial in the Function Library group on the Formulas tab, scroll
through the list, and then select PV.
f. Click cell E3 to enter that cell reference in the Rate box, click in the Nper box, and then
click cell E4. Click in the Pmt box, type B2, and then click OK.
g. Edit the function by typing - between = and PV. Press Enter. Save the workbook.
2. Enter Formulas in the Amortization Table
a. Click cell B8, type =E2, and then press Tab.
b. Type =B$2 in cell C8 and press Ctrl+Enter. Drag the cell C8 fill handle to copy the payment
to range C9:C55.
c. Click cell D8, click Financial in the Function Library, select IPMT to open the Function
Arguments dialog box, and type the following: E$3 in the Rate box, A8 in the Per box, E$4 in
the Nper box, and E$2 in the PV box. Click OK. Edit the function by typing a hyphen (-)
between = and IPMT to convert the results to a positive value. Press Ctrl+Enter. Drag the
cell D8 fill handle to copy the IPMT function to the range D9:D55.
d. Click cell E8, click Financial in the Function Library, select PPMT to open the Function
Arguments dialog box, and type the following: E$3 in the Rate box, A8 in the Per box, E$4 in
the Nper box, and E$2 in the PV box. Click OK. Edit the function by typing a hyphen (-)
between = and PPMT to convert the results to a positive value. Press Ctrl+Enter. Drag the
cell D8 fill handle to copy the PPMT function to the range E9:E55.
e. Click in cell F8 and type =B8-E8.
f. Click in cell B9, type =F8, and then press Ctrl+Enter.
g. Drag the cell B9 fill handle to copy the cell reference to the range B10:B55.
h. Drag the cell F8 fill handle to copy the formula to the range F9:F55.
i. Type SUM functions in cells C56, D56, and E56. Select the range A56:F56 and apply the
Top and Double Bottom Border. Save the workbook.
3. Calculate Cumulative Interest
a. Click cell H8, click Financial in the Function Library group on the Formulas tab, and then
select CUMIPMT.
b. Type the following arguments: E$3 in the Rate box, E$4 in the Nper box, E$2 in the Pv
box, and A$8 in the Start_period box.
c. Type A8 in the End_period box.
d. Press Tab, type 0 in the Type box, and then click OK.
e. Edit the function by typing - between = and CUMIPMT to convert the results to a positive
value. Click Enter.
f. Copy the formula through cell H55. Save the workbook.
4. Calculate Cumulative Principal Paid
a. Click cell I8, click Financial in the Function Library group, and then select CUMPRINC.
b. Type the following arguments: E$3 in the Rate box, E$4 in the Nper box, E$2 in the Pv
box, and A$8 in the Start_period box, A8 in the End_period box, and a 0 in the Type box.
c. Click OK and edit the function by typing - between = and CUMPRINC. Press Ctrl+Enter.
d. Copy the formula from cell I8 to the range I9:I55. Save and close the file.
Hands-On Exercise 4: Ideas
The location managers are asking for new company cars. You have been told by the company’s
CFO that they can afford $550 monthly payments based on a 4.25% APR for four-year loans.
Prepare a loan amortization table and running totals for interest and principal repayment.
Steps:
1. Calculate the Present Value

You might also like