Intermediate
60 mins
Teacher/Student led
+80 XP
Pupils work on their own device

Data Manipulation: Select, Sort, Copy, Move, Delete

Learn to select spreadsheet ranges accurately before sorting or copying. Practise sorting by one or more columns, copying values safely, and restoring order with an ID column. Apply these skills to organise your project data.

Teacher Class Feed

Load previous activity

    1 - Introduction ~5 mins

    Today you will

    • sort a small stock sheet by one column and then by two
    • copy totals across as plain numbers
    • put the rows back in their first order using an ID column

    Warm-up

    Illustration for IntroductionThink about a list you keep for your enterprise, like stock, hours or costs. If someone sorted only the Name column, what would go wrong?

    2 - Key Concepts ~5 mins

    Key words

    • A range is a block of cells that belong together. Select all of it before you sort.
    • A two-column sort groups rows by one column, then puts each group in order by a second column.
    • Paste values pastes the numbers only, without the formula behind them.
    • An ID column numbers your rows 1, 2, 3, so you can sort them back to how they started.

    Example

    Sort a Centra stock list by Category, then by Cost (€). All the Drinks sit together, cheapest first.

    3 - Step-by-step Task ~20 mins

    You will make a small stock sheet and practise sorting it. Copy the table in the box below into your new sheet, then follow the steps in the box underneath.

    IDItemCategoryCost (€)QtySupplierTotal (€)
    1Coffee beans 1kgDrinks12.508Bean Bros
    2Milk 2LDairy1.8924Local Dairy
    3Scones (pack 6)Bakery3.2015Bake House
    4Orange juice 1LDrinks2.1012Fruit Co
    5Butter 454gDairy2.9510Local Dairy
    6Flour 1kgBakery1.4020Bake House

    This file is practice only. Your project work comes in the next activity.

    4 - Common Issues ~4 mins

    Names don't match the costs any more

    You sorted only one column. Press {{kbd:Ctrl+Z}} ({{kbd:Cmd+Z}} on a Mac), select the whole block with the headings, and sort again.

    You can't get the first order back

    Add an ID column before you sort. Then sort by ID, smallest first.

    The heading row ends up in the middle

    Turn on the header row option in the sort box.

    5 - Independent Practice ~16 mins

    Independent Practice

    Your goal: Sort your own project sheet two ways, then put it back in the order it started.
    Time: ~15 minutes
    Task:
    1. Open {{code:sm3_from_template}} in {{code:Project_Portfolio/09_specialism/sm3}}. If it is missing, make a copy of {{code:sm3_sort_practice}} called {{code:sm3_from_template}}.
    2. Add an ID column if your sheet does not have one.
    3. Select the whole block and sort it by one useful column.
    4. Sort again by two columns that answer a project question, like Category then Cost (€).
    5. Sort by ID to put the rows back.
    Success criteria:
    • My sheet has an ID column.
    • I sorted by one column and by two, and every row still matches.
    • Sorting by ID puts my rows back.
    • {{code:sm3_from_template}} is saved in {{code:sm3}}.
    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2026. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more