Data Manipulation & Analysis
Data Manipulation & Analysis
Data
Manipulation
& Analysis
Data Selection:
Locate & Extract Data
for Analysis
Guideline
• Locate & Extract Data for Analysis
22
Data Location & Extraction
33
Data Location & Extraction
• Extract records from the table based on given criteria. A criteria
area and extract area can be created on the worksheet.
• You can hide the arrows so that they do not show by toggling
the Filter button (Data tab | Sort & Filter group) or the Filter
command on the Sort & Filter menu (Home tab | Editing group).
55
Data Location & Extraction
• AutoFilter displays all records that meet the criteria as a subset of the
table by hiding records that do not pass the test. The AutoFilter menu
allows you to search for items in the column by typing in a Search box
that appears above the list of items.
77
Data Location & Extraction
In custom filtering:
• You can click the And option button or the Or option button to
select the AND operator or the OR operator. The AND operator
indicates that both parts of the criteria must be true; the OR
operator indicates that only one of the two must be true.
88
Data Location & Extraction
Advanced Filtering
Using a Criteria Range on the Worksheet
99
Data Location & Extraction
10
10
Data Location & Extraction
11
11
Data Location & Extraction
12
12
Data Location & Extraction
Steps:
• Click a cell to activate the (original) table.
• Display the Data tab and then click the Advanced button
(Data tab | Sort & Filter group) to display the Advanced Filter
dialog box.
13
13
Data Location & Extraction
• Click the OK button (Advanced Filter dialog box) to hide all
records that do not meet the comparison criteria
14
14
In-class Exercise
16
16
Data Location & Extraction
17
17
Data Location & Extraction
Extract records from the table based on given criteria.
Creating an extract range requires steps similar to those used to
create a criteria range earlier. Steps:
• To create an extract range, copy the field names of the table and
then paste them to an area on the worksheet, preferably well
below the table range.
• Next, name the pasted range Extract by using the Name box in
the formula bar.
• Finally, use the Advanced Filter dialog box to extract the records.
18
18
Data Location & Extraction
Extract records from the table based on given criteria.
Repeat the previous exercise with extract
19
19
Data Location & Extraction
20
20
Data Location & Extraction
21
21
Data Location & Extraction
22
22
Data Location & Extraction
23
23
In-class Exercise
24
24
Data Location & Extraction
26
26
Data Location & Extraction
27
27
Data Location & Extraction
• Enter Avg Full-time wage in cell G11. Enter Avg Part-time wage
in cell G12.
• Select cell H11 and then type =DAVERAGE(A6:E11, "Hourly
Wage", G8:G9) to enter a database function.
• Select cell H12 and then type =DAVERAGE(A6:E11, "Hourly
Wage", H8:H9) to enter a database function.
28
28
Data Location & Extraction
29
29
Data Location & Extraction
Using Wildcards in Criteria
• The * wildcard
• The asterisk (*) wildcard character represents any number of
characters in that position, including zero characters.
• In this example, any customer whose name contains "mart"
will pass through the Excel advanced filter.
30
30
Data Location & Extraction
Using Wildcards in Criteria
• The ? wildcard
• The question mark (?) wildcard character represents one
characters in that position.
• In this example any 4-letter product that begins with c, and
ends with ke, will pass through the Excel advanced filter. Both
Coke and Cake are in the filtered results.
31
31