0417 · 20.2Manipulate data
Cambridge IGCSE Information and Communication Technology (0417) · Topic 20, Spreadsheets · 8:50
Practise this topic
Real past-paper questions on manipulate data, with their mark schemes. Free with an account.
57 more Information and Communication Technology videos like this one
With a CIE Buddy account: every video in syllabus order, past-paper practice on each topic, and an AI tutor for anything unclear.
In this video
- 0:00Sorting spreadsheet data. Explains data structure, sorting directions, and single or multiple criteria sorts while keeping complete rows together.
- 2:41Filtering with comparison operators. Shows how filters create subsets using comparison operators, including strict and inclusive boundary values.
- 4:51Logical operators and wildcards. Explains and, or and not conditions, plus wildcard patterns for finding text values.
- 6:25Practical tasks and exam checks. Recaps sorting and filtering, demonstrates a combined task, and highlights common practical exam mistakes.
Transcript: Manipulate data
Sorting spreadsheet data
0:00A stock list contains everything a school shop sells. The shop assistant needs products with low stock, while the manager wants products grouped by category. Both people can work from the same spreadsheet. Sorting changes the order of its entries, while filtering selects the entries that meet particular conditions. Data is facts or values that a computer can process. Our spreadsheet contains product names, categories, stock quantities and prices. Each row describes one product, and each column contains one kind of detail.
0:30Keeping those relationships intact is essential whenever we rearrange the list. A criterion is a condition used to order or select entries. The plural is criteria, so several conditions means multiple criteria. Sorting means arranging data in a specified order using one or more criteria. Filtering, in contrast, means displaying entries that meet specified criteria while temporarily hiding the others. Open the supplied file called Stock List, written as one word, and check that each heading matches the values beneath it.
1:01Our example has six products and four columns. Check that stock quantities are stored as numbers, because numeric comparisons depend on their values. Identify the complete rectangular list before applying any sort. Ascending order runs from smallest to largest, alphabetically forwards, or from earliest to latest. Descending order reverses those directions. For our stock quantities, ascending puts five before eight, while descending puts twenty before fifteen. The direction describes the values in the chosen column.
1:31Select the complete list, including its headings, and identify the first row as headings. Set Stock as the sort criterion and choose descending order. Apply the sort to the entire list. Every product must move with its category, quantity and price, because those cells describe the same item. Green folder now appears first because its stock quantity is twenty. Blue pen appears last because its quantity is five. The two products with eight keep their original order, Red folder then Black pen, because a single criterion cannot separate them.
2:03A second criterion gives us control over entries whose first values match. For a multiple criteria sort, set Category ascending as the primary criterion. The primary criterion has the highest priority. Add Stock descending as the secondary criterion, which orders entries within matching categories. Apply both settings together so that category groups remain intact. Stationery comes before Storage alphabetically, so all four stationery products appear together. Their stock quantities run from fifteen down to five.
2:33Within Storage, twenty comes before eight. Priority matters because the secondary criterion applies only where the primary values match.
Filtering with comparison operators
2:41A subset is a selection of entries from a larger collection. Filters produce subsets by testing each row against a condition. Enable filtering for the complete list, with headings recognised. For the independent demonstrations that follow, restore the original row order and clear previous criteria before each new search. Search operators express the tests that each entry must pass. These include and, or, not, greater than, less than, equals, greater than or equal to, less than or equal to, and not equal to.
3:11The board shows the symbol typed for each comparison. Each filter below starts again from all six products, so every result can be checked against the original list. Greater than eight selects twelve, twenty and fifteen, so three products remain visible. The boundary value eight is excluded because it does not exceed the threshold. Filtering preserves the complete details of every selected product. Clearing the filter displays all six products again.
3:37Less than eight selects only Blue pen because its quantity is five. This condition also excludes the boundary value eight. Think of greater than and less than as strict comparisons. Each accepts values on one side of the threshold. Equals eight keeps Red folder and Black pen. Both entries have the exact quantity specified. Equality also works with text, such as Category equals Storage. Choose an exact comparison when the entire value must match your condition.
4:05Greater than or equal to eight includes the boundary, so five products remain. Only Blue pen falls below the threshold. The words at least indicate this inclusive comparison. Stock of at least eight therefore includes products with exactly eight. Less than or equal to eight selects quantities five, eight and eight. Here, at most eight describes the same condition. Both inclusive operators accept equality at the boundary. Checking boundary values helps confirm that your search matches the instruction precisely.
4:35Not equal to eight selects every product with a different quantity. Four entries remain visible, while the two entries containing eight are hidden. This operator excludes one particular value. It is useful when a task asks for everything except a specified entry or category.
Logical operators and wildcards
4:51And requires every joined condition to be true. Select Category equals Stationery and Stock less than or equal to eight. Blue pen passes both tests, and Black pen does too. Red folder passes the quantity test, but its category prevents it from entering this subset. Or requires at least one joined condition to be true. Select Category equals Storage or Stock less than eight. Both folders qualify through their category, while Blue pen qualifies through its quantity.
5:18An entry that passes both conditions would still appear once. Not reverses whether a condition is true. Applying not to Category equals Storage selects the four stationery products. The same subset comes from Category not equal to Storage. Build criteria through the software’s filtering options, then count the rows returned. A wildcard is a character that represents unspecified characters in a search pattern. An asterisk represents any sequence of characters, including none.
5:46A question mark represents exactly one character. Type the pattern into a text filter that uses equals or contains, then check which rows remain. The pattern asterisk pen selects names that end with pen. The asterisk allows any characters before that ending. All three pen products remain visible. Pattern position matters because placing the asterisk after a word instead selects text that begins with that word. The next pattern begins with a question mark, followed by the letters E D, then an asterisk.
6:16It requires one initial character before that fixed text. Any remaining characters are accepted by the asterisk. Red pen and Red folder satisfy the complete pattern.
Practical tasks and exam checks
6:25For the first theory answer, sorting arranges entries into a specified order. Filtering, however, displays only the entries that meet the criteria and hides the others. For the second answer, cells across a row contain related details about one product. Moving complete rows keeps each product with its own category, stock and price. For the third answer, a search with the and operator returns only the entries that meet every condition.
6:50With the or operator, an entry is returned when it meets at least one of the conditions. Given the same two conditions, the and operator therefore never returns more entries than the or operator. On our list, stationery with stock of at most eight gave two products, while storage or stock below eight gave three. In a practical task, select stationery products with stock of at most eight, then sort Stock ascending and Item ascending.
7:16Clear previous criteria before entering both conditions with and. Check that Blue pen and Black pen remain. Apply the multiple criteria sort to the complete list, so each product retains its details. Blue pen appears before Black pen because five is smaller than eight. Check the criterion priority, comparison boundaries and visible row count. Keep every label and value fully visible. Answers that name a software brand gain no marks, so describe the operation itself.
7:44The marks most often lost come from sorting a single column on its own, which separates products from their details. Another common loss is the heading row sorted into the data. Candidates also confuse and with or, or use greater than where the task says at least. A filter left over from an earlier step, or a criterion typed with a spelling slip, returns the wrong rows. The practical papers provide source files and have no internet access.
8:09A screenshot is an image captured from all or part of a screen. Place requested screenshots in an Evidence Document. Include your name, centre number and candidate number on every printout. As a reminder, sorting means arranging data in a specified order using one or more criteria. To recap filtering, it means displaying entries that meet specified criteria while temporarily hiding the others. Use criterion priority to control order, and logical operators to control membership.
8:38Check the returned entries against the instruction, especially values exactly on a boundary. Database tables are searched with the same operators and wildcards, as the video on manipulating database data shows.