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.
A
B
C
1
Item
Price
In stock
2
Blue pen
2
40
3
Red pen
2
25
4
Pencil case
6
12
5
Ruler
3
18
6
Sharpener
1
30
7
Pen holder
4
9
8
Notebook
5
22
9
Glue stick
2
16
Worked examples
Cell
Contents
Why it matches
A2
Blue pen
pen is a whole word
A3
Red pen
pen is a whole word
A4
Pencil case
Pencil starts with pen
A6
Sharpener
Sharpener has pen inside it
A7
Pen holder
the 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.
open Find→type the keyword→find all matches→read the cell addresses→check each match
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?
A
B
1
Item
Price
2
Dog food
8
3
Cat food
7
4
Fish tank
30
5
Fish food
3
6
Bird seed
4
7
Dog toy
5
food: A2, A3 and A5. dog: A2 and A7.
2
Which keyword finds exactly Fish tank and Fish food, and nothing else, in the list above?
fish. It matches A4 and A5 only.
3
Mia searches for cat in a sheet. It finds Cat food, Catalogue and Education book. Why does it find the last two?
A
1
Item
2
Cat food
3
Catalogue
4
Education book
5
Dog lead
The search looks for the letters c, a and t anywhere in a cell. Cat-alogue and edu-cat-ion both contain them.
4
Ravi searches the keyword mop in a sheet and the spreadsheet finds nothing. Give two things that he should check.
He should check the spelling of the keyword, and check that the item is really in the sheet and that he is searching the right sheet.