Practical 1:: Using Advanced Functions
Practical 1:: Using Advanced Functions
Practical 1
PRACTICAL 1:
At the end of this practical student should be able to:
Using advanced functions
Analysing table data
Performing What-if Analysis and Using Scenario
Use the VLOOKUP function to lookup the Age in the rates table and retrieve the Rate
% from the second column.
1. Select the cell in which you want the result of the Click cell F6
VLOOKUP function to appear.
Copy the formula to the range F7:F15. Then, click anywhere in the worksheet to
1
AACS3763 Managing Information Systems
Practical 1
deselect the range.
1.2 Using the HLOOKUP Function
Steps:
Select rates from the Name box to view the lookup table. Use the HLOOKUP function to
lookup the Category in the charges table and retrieve the Loading Charge from the third
row.
1. Select the cell in which you want the result of the Click cell G6
HLOOKUP function to appear.
Copy the formula to the range G7:G15. Then, click anywhere in the worksheet to
deselect the range.
2
AACS3763 Managing Information Systems
Practical 1
Steps:
Use the IF function to determine the Discount Reduction amount based on the Insurance
Claims status. If the status is No, then calculate 35% of the Loading Charge, else display
0.
1. Select the cell in which you want the result of the IF Click cell H6
function to appear.
Copy the formula to the range H7:H15. Then, click anywhere in the worksheet to
deselect the range.
3
AACS3763 Managing Information Systems
Practical 1
1.4 Using Date Function
Steps:
Practice
1. Select cell F4.
2. Enter the function =MONTH(B4) to extract the month number from the Inv Date.
3. Copy the function to the cell range F5:F18.
4. Select cell G4.
5. Enter the function =YEAR(B4) to extract the year number from the Inv Date.
6. Copy the function to the cell range G5:G18.
4
AACS3763 Managing Information Systems
Practical 1
1.5 Using the COUNTIF Function
Steps:
Insert a function to count the number of invoices with amount of 10000 and above.
1. Select the cell in which you want the result of the Click cell E20
COUNTIF function to appear.
Practice
5
AACS3763 Managing Information Systems
Practical 1
Steps:
1. Select the cell in which you want the result of the Click cell E24
SUMIF function to appear.
6
AACS3763 Managing Information Systems
Practical 1
1.7 Using RANK Function
Steps:
Insert a function to rank each page against the named range visitors (B5:B11).
1. Select the cell in which you want the result of the RANK Click cell C5
function to appear.
The cell range appears in the cell and on the formula bar.
5. Type the closing parenthesis ( ) ). Type )
7
AACS3763 Managing Information Systems
Practical 1
Practical Exercise:
Open Football.xlsx file and display the Teams worksheet.
1. Enter a function in B4 to remove extra spaces from the player’s name in A4.
2. Copy the function to the cell range B5:B15.
3. In cell E4, assign a team to each player based on the Total Points column using the
lookup table in the cell range I5:K9.
4. Copy the function to the cell range E5:E15.
5. Enter a function in F4 to rank each player based on their Total Points against the named
range points in descending order.
6. Copy the function to the cell range F5:F15.
7. Enter a function in G4 to extract the year number from the Birth Date in C4.
8. Copy the function to the cell range G5:G15.
9. Enter a function in C17 to count the number of players born in the year 1992.
8
AACS3763 Managing Information Systems
Practical 1
Analysing table data
2.1 Filter Table
Steps:
2. In the list of projects for the Project field, click Select All to clear the checks marks
from the projects, scroll down the list of projects, click Cheetah, and then click OK.
4. Click the Project list arrow, then click Clear Filter From “Project”.
5. Click the Places Reserved list arrow, point to Number Filters, click Top 10, select
10 in the middle box, type 5, click the Items list arrow, click Percent, and then
click Ok.
6. On the Home Tab, click the Sort & Filter button in the Editing group, and then
click Clear.
7. Click the Depart Date list arrow, point to Date Filters, point to All Dates in the
Period, and then click March.
8. Click the Sort & Filter button in the Editing group, click Clear.
9
AACS3763 Managing Information Systems
Practical 1
2.2 Create a Custom Filter
Steps:
1. Click the Depart Date list arrow, point to Date Filters, and then click Custom
Filter.
2. Click the left text box list arrow on the first line, click is before, then type 3/1/2017
in the right text box on the first line.
3. Click the Or option button to select it, click the left text box list arrow on the
second line, select is after, and then type 12/1/2017 in the right text box on the
second line.
4. Click Ok.
5. Click the Depart Date list arrow, click Clear Filter From “Depart Date”, click
the Depart Date list arrow, point to Date Filter, and then click Custom Filter.
6. Click the left text box list arrow on the first line, click is after, then type 2/15/2017
in the right text box on the first line.
7. Click the left text box list arrow on the second line, click is before, then type
4/15/2017 in the right text box on the second line, and then click Ok.
8. Click the Depart Date list arrow, click Clear Filter From “Depart Date”, and
then add your name to the center section of the footer.
10
AACS3763 Managing Information Systems
Practical 1
2.3 Filter Table with the Advanced Filter
Steps:
1. Select table rows 1 through 6, then click the Insert list arrow in the Cells group.
2. Click Insert Sheet Rows; click cell A1, type Criteria Range, and then click the
Enter button on the formula bar.
3. Select the range A7:H7, click the Copy button in the Clipboard group, click cell
A2, click the Paste button in the Clipboard group, and then Press [Esc].
4. Click cell B3, type >6/1/2017, click cell F3, type <2000, and then click .
5. Click any cell in the table, click the Data tab, then click the Advanced button in the
Sort & Filter group.
6. Click the Criteria range text box, select the range A2:H3 in the worksheet, then
click Ok.
Steps:
1. In cell A3 enter African Wild Dog, and then in cell A4 enter Great White Shark.
3. If necessary, click the Data tab, and then click Advanced in the Sort & Filter group.
4. Under Action, click the Copy to another location option button to select it, click
the Copy to text box, and then type A75.
5. Edit the contents of the Criteria range text box to show the range $A$2:$H$4,
click Ok, then if necessary scroll down until row 75 is visible.
6. Press [Ctrl][Home], and then click the Clear button in the Sort & Filter group.
11
AACS3763 Managing Information Systems
Practical 1
Steps:
1. Click the Formulas tab in the Ribbon, and then click the Name Manager Button in
the Defined Names Group.
2. Click Close.
3. Click cell M1, enter 754Q, click cell M2, click the Lookup & Reference button in
the Function Library group, and then click VLOOKUP.
4. With the insertion point in the Lookup_ value text box, click cell M1, click the
Table_array text box, and then type Table2.
5. Click the Col_index_num text box, type 2, click the Range_lookup text box, and
then enter FALSE. Click Ok.
6. Click cell M1, type 335P, and then click the Enter button on the formula bar.
Steps:
1. Review the criteria range for the Rhino project in the range L5:L6.
2. Click cell M8, click the Insert Function button in the Function Library group, in the
Search for a function text box type database, click Go, scroll to the click DSUM
under Select a function, and then click Ok.
3. In the Function Arguments dialog box, with the insertion point in the Database text
box, move the pointer over the upper-left corner of cell A1 until the pointer changes
to , click once, and then click again.
4. Click the Field text box, then click cell G1, Places Available; click the Criteria text
box and select the range L5:L6. Click Ok.
12
AACS3763 Managing Information Systems
Practical 1
5. Click cell M9, click the Insert Function button on the formula bar, in the
Search for a function text box type database, click Go, and then double-click
DCOUNTA in the Select a function list.
6. With the insertion point in the Database text box, move the pointer over the upper-
left corner of cell A1 until the pointer changes to , click once, and then click again
to include the header row, click the Field text box, click cell B1, click the Criteria
text box and select the range L5:L6, and then click Ok.
6. Click cell L6, type Dolphin, and then click the Enter button on the formula bar.
13
AACS3763 Managing Information Systems
Practical 1
Practical Exercise:
Open Human Resources.xlsx file.
1. Filter a table
a. Click the Compensation worksheet, filter the table to list only records for employees
in the Dallas branch.
b. Clear the filter, then add a filter that displays the record for employees in the Dallas
and LA branches.
c. Redisplay all employees, then use a filter to show the three employees with the
highest annual salary.
d. Redisplay all the records.
14
AACS3763 Managing Information Systems
Practical 1
15
AACS3763 Managing Information Systems
Practical 1
Performing What-if Analysis and Using Scenario
3.1 Track What-if analysis with scenario manger
Steps:
1. Select range C3:E3, click the Data tab, click the What-If Analysis button in the
Forecast group, then click Scenario Manager.
2. Click Add, drag the Add Scenario dialog box to the right if necessary until columns
A and B are visible, then type Original Sales Figures in the Scenario name text box.
4. Click Add; in the Scenario name text box type Increase Feb, Mar, Apr, by 5000;
verify that the Changing cells text box reads C3:E3, then click Ok; in the Scenario
Values dialog box, change the value in the $C$3 text box to 80189, change the value
in the $D$3 text box to 76423, change the value in the $E$3 text box to 89664, then
click Add.
5 In the Scenario name text box type Increase Feb, Mar, Apr, by 10000 and click
Ok; in the Scenario Values dialog box, change the value in the $C$3 text box to
85189, change the value in the $D$3 text box to 81423, change the value in the $E$3
text box to 94664, then click Ok.
6. Make sure the Increase Feb, Mar, Apr, by 10000 scenario is still selected, click
Show, notice that the percentage the New York sales in cell I3 changes from 31.38%
to 32.91%; click Increase Feb, Mar, Apr, by 5000, click Show, notice that the New
York sales percentage is now 32.30%; Click Original Sales Figures, click Show to
return to the original values, then click Close.
16
AACS3763 Managing Information Systems
Practical 1
3.2 Generate a Scenario Summary
Steps:
1. Select range B2:I3, click the Formulas tab, click the Create from Selection button
in the Defined Names group, then click the Top row check box to select it if
necessary, then click Ok.
3. Click Close in the Name Manager dialog box, click the Data tab, click the What-If
Analysis button in the Forecast group, click Scenario Manager , then click
Summary in the Scenario Manage dialog box.
4. With the contents of the Result cells text box selected, click cell H3 on the
worksheet, type , (a comma), click cell I3, type , (a comma), then click cell H7.
Click Ok.
5. Right click the Column D heading, then click Delete in the shortcut menu.
6. Select the range B13:B15, press [Delete], select cell B2, edit its contents to read
Scenario Summary for New York Sales, click cell C10, and then edit its contents
to read Total New York Sales.
7. Click cell C11, edit its contents to read Percent New York Sales, click cell C12,
edit its contents to read Total R2G Sales, then click cell A1.
17
AACS3763 Managing Information Systems
Practical 1
Steps:
1. Enter Total N.Y. Sales in cell K1, widen column K to fit label, in cell K2 enter
419921, in cell K3 enter 469921, select the range K2:K3, drag the fill handle to
select the range K4:K6, then format the range using the Accounting format with zero
decimal places.
2. Click cell L1, type =, click cell I3, click the Enter button on the formula bar, then
format the value in cell L1 using the Percentage format with two decimal places.
3. With cell L1 selected, click the Home tab, click the Format button in the Cells
group, click Format Cells, click the Number tab in the Format Cells dialog box if
necessary, click Custom under Category, select any characters in the Type box, type
;;;(three semi-colons), then click Ok.
*type ;;; hides the values in a cell
4. Select the range K1:L6, click the Data tab, click the What-If Analysis button in
the Forecast group, and then click Data Table.
5. Click the Column input cell text box, click cell H3, and then click Ok.
6. Format the range L2:L6 with the Percentage format with two decimal places, and
then click cell A1.
18
AACS3763 Managing Information Systems
Practical 1
7. Change the page orientation to landscape, then save the workbook.
Steps:
1. Click cell B8. Click the Data Tab, click the What-If Analysis button in the Forecast
group, and then click Goal Seek.
3. Click the By changing cell text box, then click cell B3. Click Ok.
Steps:
If Solver does not appear in the Data tab, click the File tab, click Options, click Add-ins,
click Go, in the Add-ins dialog box click the Solver Add-in check box to select it, then
click OK.
1. Click the Data tab, then click the Solver button in the Analyze group.
2. With the insertion point in the Set Objective text box, click cell I7 in the worksheet,
click the Value Of option button if necessary, double-click the Value Of text box,
then type 3,100,000.
3. Click the By Changing Variable Cells text box, then select the range G3:H6 on the
worksheet.
4. Click Add, with the insertion point in the Cell Reference text box in the Add
Constraint dialog box, select the range I3:I6 in the worksheet, click the list arrow in
the dialog box, click =, then with the insertion point in the Constraint text box click
cell C9.
5 Click Add, with the insertion point in the Cell Reference text box select the range
G3:G6 in the worksheet, click the list arrow in the dialog box, click >=, then with
the insertion point in the Constraint text box click cell C11.
6. Click Add, with the insertion point in the Cell Reference text box select the range
19
AACS3763 Managing Information Systems
Practical 1
H3:H6 in the worksheet, click the list arrow in the dialog box, click >=, then with
the insertion point in the Constraint text box click cell C10, then click Ok.
To be continued in 3.6
3.6 Run solver and summarize results
7. Click Solve.
8. Click Save Scenario, type Adjusted Budgets in the Scenario Name text box, click
Ok, in the Solver Results dialog box click the Restore Original Values option
button, then click Ok.
9. Click the What-If Analysis button in the Forecast group, click Scenario Manager,
with the Adjusted Budgets scenario selected in the Scenario Manager dialog box
click Summary, then click Ok.
10. Select Column A, click the Home tab if necessary, click the Delete button in the
cells group, right-click the Scenario Summary 2 sheet tab, click Rename on the
shortcut menu, type Adjusted Budgets, then press [Enter].
11. Select the range A16:A18, press [Delete], select the range A2:D3, click the Fill
Color list arrow in the Font group, click Blue, Accent 1, select the range A5:D15,
click the Fill Color list arrow in the Font group, click Blue, Accent 1, Lighter
80%, right click the row 1 header, click Delete, select cell A1, then enter Solver
Solutions.
20
AACS3763 Managing Information Systems
Practical 1
12. Enter your name in the center section of the worksheet footer, save the workbook,
then preview the worksheet.
Steps:
If Data Analysis does not appear on Data tab, click the File tab, click Options, click
Add-ins, click Go, in the Add-ins dialog box click the Analysis ToolPak check box to
select it, then click OK.
1. Click the Data tab, then click the Data Analysis button in the Analyze group.
3. With the insertion point in the Input Range text box, select the range H3:H6 on the
worksheet.
4. Click the Columns option button in the Grouped By: area if necessary, click the
New Worksheet Ply option button in the Output options section if necessary, then
type Branch Statistics in the text box.
5. Click the Summary Statistics check box to select it, then click Ok.
6. Widen column A to display the row labels, then edit the contents of cell A1 to read
Total Projected Sales Jan – Jun.
Enter your name in the center section of the Branch Statistics footer, preview the
worksheet, then save the workbook.
21
AACS3763 Managing Information Systems
Practical 1
22
AACS3763 Managing Information Systems
Practical 1
Practical Exercise:
Open Repair.xlsx file.
1. Track What-if analysis with Scenario Manager
a. Click the Stair Stepper Repair worksheet, select the range B3:B5, then use the
Scenario Manager to setup a scenario called Most Likely with the current data input
values.
b. Add a scenario called Best Case using same changing cells, but change the Labor cost
per hour in the $B$3 text box to 80, change the Parts cost per job in the $B$4 text box
to 70, then change the Hours per job value in cell $B$5 to 2.5.
c. Add Scenario called Worst case. For this scenario, change the Labor cost per hour in
the $B$3 text box to 95, change the Parts cost per job in the $B$4 text box to 85, then
change the Hours per job value in cell $B$5 to 4.
d. Drag the Scenario Manager Dialog box to the right until columns A and B are visible.
e. Show the Worst Case scenario results, and view the total job cost.
f. Show the Best Case scenario results, and observe the job cost. Finally, display the
Most Likely scenario results.
g. Close the Scenario Manager Dialog box.
h. Save the workbook.
23
AACS3763 Managing Information Systems
Practical 1
24