0% found this document useful (0 votes)
6 views

Lesson_02_Data_Cleaning_and_Preparations

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Lesson_02_Data_Cleaning_and_Preparations

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Lesson 2: Data Cleaning and Preparations

Overview
The objective of this exercise is to apply Excel data cleaning and preparation
techniques in real-time scenarios, providing an opportunity for learners to
practically engage with these tools in a context that mimics actual professional
tasks. By working through realistic examples and problems, participants can
enhance their coding capabilities and problem-solving techniques.

Instructions
1. Divide your time evenly among the questions for efficient problem-solving
2. Share ideas and solutions actively within your group
3. Use the Excel data tab functions efficiently to learn the data cleaning
techniques

Task
You have received a dataset of employee information in an Excel spreadsheet. Your
task is to perform various operations on this data using Excel's sort and filter
options to gain insights into the employee information.
Open the Employee.xlsx file to solve the scenario. The dataset consists of the
following columns:

• Employee Name: Name of the employee


• Job Role: Employee designation
• Salary: Salary amount (in $)

1. Sort the data by Salary: Sort the employee data based on their salaries in
descending order
2. Sort the data by Employee Names: Sort the employee data alphabetically by
their names
3. Filter the data by Job Role: Apply a filter to display only the employees with the
job role "Developer”
4. Filter the data by Salary Range: Apply a filter to display employees with
salaries between $50,000 and $55,000

Answer the Following Questions


a. Identify the employee with the highest salary and the one with the lowest
salary
b. Identify which employee comes first in alphabetical order
c. Count the number of employees in the "Developer" job role
d. Count the number of employees within the $50,000 to $55,000 salary range

Discussion Questions (Optional)


If time permits, discuss the following question:

• Which data cleaning functions in Excel would you apply to solve these kinds
of scenarios?
Answer Key

1. Sort by Salary
Open Excel and select the data tab to access the sort of option. Choose the
options column as salary, sort the option as cell value, and order the option
from smallest to largest.

2. Sort by Employee Name


Go to the Data tab on the Excel ribbon and open the sort of dialog box. Select
the column that corresponds to the employee's name. Make sure to choose
Values under the Sort On option. Then, for the Order option, you can choose
either A to Z to sort names in ascending (alphabetical) order or Z to A in
descending order. After setting these options, click OK to apply the sorting to
your data.
3. Filter by Job Role
To use the filter option, select the data tab. Select the Developer checkbox and
untick the remaining job roles from the Job role drop-down menu.

5. Filter by Salary Range


Go to the salary drop-down menu, select the number filtering option, choose
between options, and enter the specific range required.
Answers
a. Michael Brown has the lowest salary and John Doe has the highest salary
b. Emily Davis
c. One, Jane Smith
d. Six Employees

You might also like