AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Search and use data

Week 17 · Unit 7: Be a data architect · 3 lessons
1

Find it with a keyword

Computing 6: Unit 7, pp. 92–105
GoalSearch a table with a keyword and list the cell addresses of the matches.
New words
keyword · a word or part of a word that we search forsearch · to look through data to find what matchesmatch · a cell that contains the keywordcell address · the column letter and row number of a cell, such as A4
Explanation

Reading through a big table to find something is slow, and we can miss things. A spreadsheet has a Find tool. We type a keyword, and the spreadsheet looks at every cell and shows the ones that contain it. The result is a list of cell addresses. The search looks for the letters anywhere inside a cell, so the keyword ‘pen’ also matches ‘Pencil’ and ‘Sharpener’. Most spreadsheets ignore capital letters when they search. We should always read the results and check them. A match does not always mean what we meant.

ABC
1ItemPriceIn stock
2Blue pen240
3Red pen225
4Pencil case612
5Ruler318
6Sharpener130
7Pen holder49
8Notebook522
9Glue stick216
Worked examples
CellContentsWhy it matches
A2Blue penpen is a whole word
A3Red penpen is a whole word
A4Pencil casePencil starts with pen
A6SharpenerSharpener has pen inside it
A7Pen holderthe capital P makes no difference
Search the stationery table for the keyword pen. Five cells match. Look at each one and find the letters p, e, n together. The results are not only pens.
A longer keyword gives fewer matches. The keyword ruler finds only A5. The keyword holder finds only A7. The keyword xyz finds nothing, and the spreadsheet says that it cannot find it. Then we check our spelling.
These are the steps for a search. 1 Open the Find tool. 2 Type the keyword. 3 Choose to find all matches. 4 Read the list of cell addresses. 5 Look at each match and check that it is what you wanted.
Class activity

Paper search (no computer): write a list of twelve food or toy names on lined paper, one on each line, and number the lines 2 to 13 as if they were the cells A2 to A13. An adult chooses a keyword, such as ‘an’ or ‘ar’. Underline the letters wherever they appear, and write the addresses of the lines that match. Count them. Now try to find a keyword that matches exactly three lines. If you have a computer or tablet, type the list into a spreadsheet and use the Find tool.

Practice
1
In this list of pet supplies, which cells match the keyword food? Which match dog?
AB
1ItemPrice
2Dog food8
3Cat food7
4Fish tank30
5Fish food3
6Bird seed4
7Dog toy5
2
Which keyword finds exactly Fish tank and Fish food, and nothing else, in the list above?
3
Mia searches for cat in a sheet. It finds Cat food, Catalogue and Education book. Why does it find the last two?
A
1Item
2Cat food
3Catalogue
4Education book
5Dog lead
4
Ravi searches the keyword mop in a sheet and the spreadsheet finds nothing. Give two things that he should check.