Data Management Exercise: Importing, Entry, Manipulation, Sorting, and
Filtering
Creating a CSV file use a text editor or a spreadsheet software like Microsoft Excel or Google Sheets.
Using Microsoft Excel:
Open Microsoft Excel:
Launch Excel on your computer.
Enter Data:
In the first row, enter the column headers: "Student ID," "Name," "Age," and "Score."
Below the headers, enter sample data for a few students.
Student ID Name Age Score
101 John Doe 20 85
102 Jane Smith 22 90
103 Mark Johnson 21 78
Save as CSV:
Click on "File" in the menu.
Choose "Save As" or "Save a Copy."
Select the location where you want to save the file.
In the "Save as type" dropdown, choose "CSV (Comma delimited) (*.csv)."
Enter a filename and click "Save."
Save as CSV
Adjust Cell Format Warning (if prompted):
If you receive a warning about changing the format, click "Yes" or "OK." This is because CSV
doesn't support some Excel features like multiple sheets.
Step 1: Importing Data
1. Download Sample CSV File previously created:
- [Download the sample CSV file] with columns: "Student ID," "Name," "Age," and "Score."
2. Import Data into Excel:
- Open Excel.
- Navigate to the "Data" tab.
- Click on "Get Data" or "From Text" (depending on your Excel version).
- Choose the downloaded CSV file and import the data into a new worksheet.
Step 2: Data Entry
3. Manually Enter Additional Data:
- In the same worksheet, manually enter data for a few more students in additional columns.
- Include various data types (text, numbers, dates) to make the dataset diverse.
Step 3: Data Manipulation
4. Calculate Average Score:
- In a new column, let's say column E, enter the formula `=AVERAGE(D2:D100)` to calculate the
average score for each student.
5. Concatenate Names:
- In a new column, let's say column F, enter the formula `=CONCATENATE (B2, " ", C2) ` to
concatenate the first and last names.
Step 4: Sorting
6. Sort Data:
- Select the data range.
- Click on the "Sort" button in the toolbar.
- Choose to sort by the "Age" column in ascending order.
Step 5: Filtering
7. Apply Filters:
- Select the data range.
- Click on the "Filter" button in the toolbar.
- Use the filter dropdowns to filter data, e.g., show students with scores above 80.
8. Advanced Filtering:
- Click on "Advanced Filter" in the "Data" tab.
- Set criteria to filter students who are both above a certain age and have a score above a specified
value.