Be able to select subsets of data using a single criterion, or multiple criteria

Resources | Subject Notes | Information Communication Technology ICT

20. Selecting Subsets of Data in Spreadsheets

This section focuses on how to extract specific portions of data from a spreadsheet based on defined rules. This is a fundamental skill for data analysis and reporting.

Selecting Data with a Single Criterion

This involves filtering the spreadsheet to display only rows that meet a particular condition in a single column.

Example: Selecting all students who scored above 70 on a test.

  1. Select the column containing the test scores.
  2. Go to the 'Data' tab.
  3. Click on 'Filter'.
  4. A dropdown arrow will appear in the header of the column.
  5. Click the dropdown arrow and choose the desired criteria (e.g., 'Greater than').
  6. Enter the value (e.g., 70) in the criteria box.
  7. The spreadsheet will now display only the rows where the test score is greater than 70.

Selecting Data with Multiple Criteria

This involves applying multiple conditions to filter the data. The conditions are usually combined using logical operators like 'AND' and 'OR'.

Example: Selecting all students who scored above 70 on a test AND are in the 'A' class.

  1. Select the column containing the test scores.
  2. Go to the 'Data' tab.
  3. Click on 'Filter'.
  4. Click the dropdown arrow in the test score column and select 'Greater than'. Enter 70.
  5. Click the dropdown arrow in the class column and select the desired class (e.g., 'A').
  6. The spreadsheet will now display only the rows that meet both criteria.

Logical Operators:

  • AND: Both conditions must be true.
  • OR: At least one condition must be true.

Example Spreadsheet Data and Filtering

Consider the following data:

Name Class Test Score Assignment Score
Alice A 85 92
Bob B 65 78
Charlie A 72 88
David C 90 75
Eve A 55 60

Scenario 1: Select all students in class 'A'.

Steps: Filter the 'Class' column for 'A'.

Result:

Name Class Test Score Assignment Score
Alice A 85 92
Charlie A 72 88
Eve A 55 60

Scenario 2: Select all students with a test score above 70.

Steps: Filter the 'Test Score' column for 'Greater than' 70.

Result:

Name Class Test Score Assignment Score
Alice A 85 92
Charlie A 72 88
David C 90 75

Scenario 3: Select all students in class 'A' with a test score above 70.

Steps: Filter the 'Class' column for 'A' AND the 'Test Score' column for 'Greater than' 70.

Result:

Name Class Test Score Assignment Score
Alice A 85 92
Charlie A 72 88

Further Considerations

Spreadsheet software offers more advanced filtering options, including:

  • Text Filters: Filtering based on patterns in text data.
  • Date Filters: Filtering based on date ranges.
  • Custom Filters: Creating complex filter criteria using formulas.

These advanced features allow for highly specific data extraction.