Unit 2 · Topic 07 · Data Analysis and Representation (Google Sheets)
Anaya's finger was already on the Delete key.
Kabir grabbed her wrist. "Wait — should we? Those are the library's only records."
Pixel's fan made a long, worried noise.
The school library had given Class 4 a job: find out which books belonged to Class 4's reading shelf. The list sat in Google Sheets. Six books, and beside each one the class it belonged to and how many copies there were.
Panchatantra, Class 4. Malgudi Days, Class 5. Rainbow Rhymes, Class 3. Space Facts, Class 4. Cricket Stars, Class 5. Ant Diary, Class 4.
"Easy," said Anaya. "I'll delete every row that isn't Class 4."
That was when Kabir grabbed her wrist.
Ms. Rao heard the fuss. "Kabir is right. Delete those rows and the librarian loses her Class 3 and Class 5 books forever. You do not want to remove them. You want to stop looking at them."
She showed them the Data menu, then Create a filter. At once a tiny funnel icon appeared in every heading cell.
Anaya clicked the funnel in the Class column. A panel opened with a section called Filter by values. Inside was a list of every value in that column — 3, 4 and 5 — each with a tick box, all ticked.
She unticked 3. She unticked 5. She clicked OK.
Three rows vanished. Panchatantra, Space Facts and Ant Diary stayed.
"They're deleted!" said Anaya, going pale.
"Look at the row numbers," said Ms. Rao.
They read 2, then 5, then 7. Three numbers were missing.
"The rows are still there," said Kabir slowly. "They're just hidden."
Anaya ticked 3 and 5 again. All six books came back, exactly as before.
A filter hides rows. It does not delete them.
Start with Data ▸ Create a filter. A funnel icon appears in each header cell. Click the funnel above the column you care about and use Filter by values: every different value in that column is listed with a tick box. A ticked value is shown; an unticked value is hidden.
The proof that nothing was deleted sits in the row numbers down the left side. When rows are hidden the numbers skip — you might see 2, 5, 7. A skipped number means a row is still there, out of sight. Tick the values again, or turn the filter off, and every row comes back. Deleting is permanent. Filtering is just a pair of sunglasses.
Make a sheet of eight snacks with a column called Taste, filled in as sweet, salty or sour.
Turn on Data ▸ Create a filter, click the Taste funnel, and leave only "sweet" ticked.
Write down which row numbers still show, then tick everything again and check all eight rows return.
Loading questions…