Intermediate
60 mins
Teacher/Student led
+65 XP

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

    Welcome

    A tidy spreadsheet is only useful if you can rearrange it without wrecking the numbers. Today you will select ranges properly, sort by one column and by two, copy values on purpose, and restore original order with an ID column. Those moves are how you answer real project questions such as “which items cost most?” or “show me Dairy first”.

    By the end of this lesson, you will be able to:

    • Select ranges and sort by one or multiple columns
    • Copy values on purpose and know when not to paste live formulas
    • Restore original row order with an ID column after sort experiments

    Warm-up

    Think about a list you use for your Something Real project (stock, hours, costs, contacts). If someone sorted only the Name column and left the other columns alone, what would go wrong?

    2 - Key Concepts ~5 mins

    Three ideas keep your project data honest when you rearrange it. You will meet ID columns in the guided steps. Moving rows and safe deletes are shown briefly on the teacher screen.

    ConceptWhy it mattersExample
    Range selection — selecting every cell that belongs together before you sort, copy, or delete Sorting one column alone shuffles labels away from their numbers and ruins the sheet Selecting A1:G7 on a Centra stocktake so Item, Cost, and Qty stay on the same row
    Multi-column sort — sorting by a primary column, then a secondary column inside tied groups (single-column sort is the same tool with one level) Groups related rows first, then orders inside each group so you can answer a real project question Sort stock by Category, then by Cost (€) so Drinks appear together with cheapest first
    Paste values — pasting the calculated numbers only, not the live formula underneath Wrong paste type freezes numbers you still need live, or copies formulas that break when source rows move Paste values of a Total column into a summary area so the summary does not depend on the source rows

    Worked example snapshot

    Worked example

    You will practise on a small enterprise stock sheet (six rows) already set up for you. Columns: ID, Item, Category, Cost (€), Qty, Supplier, Total (€). Total already uses a formula. You will sort by Category, then by Cost, copy totals as values, then restore original order using the ID column.

    3 - Step-by-step Task ~20 mins

    Open the stock practice starter (headings, six rows, and Total formulas already filled). Practise select, sort (one column and two), copy values, and restore original order with the ID column. Work with a partner on the paste-values check if your teacher pairs you.

    Note

    Practice only: {{code:sm3_sort_practice}} is rehearsal. Your Key Assignment evidence is {{code:sm3_from_template_v3}} in the next activity.

    4 - Common Issues ~4 mins

    Common Issues

    IssueSolution
    After sorting, names no longer match the costs on the same row You sorted one column only. Press {{kbd:Ctrl+Z}} ({{kbd:Cmd+Z}} on Mac) once or twice if you just did it, then select the full block (every column of data plus the header row) and sort again from {{menu:Data -> Sort}} (Excel for the web) or {{menu:Data -> Sort range -> Advanced range sorting options}} (Sheets). A broken sort is normal the first time — recover and continue.
    I cannot get back to the original row order Add an ID column (1, 2, 3…) before you experiment, then sort by ID ascending to restore. If you already sorted without an ID, use Undo immediately or reopen the last good cloud version.
    Paste put formulas into my summary and now I see #REF! after a delete Use Paste values / Values only for summary numbers. Click a pasted cell: the formula bar should show a number, not =. #REF! means a formula still pointed at cells you removed — fix the formula range or restore the deleted cells from version history.
    Sort treats my header row as data (Category appears in the middle of the list) Turn on the header-row option in the sort dialog, or make sure row 1 really holds headings and the sort range starts at that header row.
    Moving a row overwrote another stock line Undo at once. In Sheets, insert a blank row at the destination first, paste into the blank row, then delete the empty leftover. In Excel for the web prefer Insert cut cells on the destination row header.
    Exit check

    Quick match (exit check): with a partner, match one goal from the worksheet list (for example “freeze totals on a summary sheet”) to the safe method before you start independent practice.

    5 - Independent Practice ~16 mins

    Independent Practice

    Your goal: Prove you can rearrange your own Something Real data without breaking it — multi-column sort, then restore original order — so later charts and filters answer real project questions.
    Time: ~15 minutes
    Task: Open {{code:sm3_from_template}} (your cleaned v2) from {{code:Project_Portfolio/09_specialism/sm3}}. If that file is missing, duplicate {{code:sm3_sort_practice}}, rename the copy {{code:sm3_from_template_v3}}, and run the same steps on that copy so you still bank evidence. Follow the platform steps for your app: add an ID column if needed, sort once by a single useful column, then once by two columns that match a real project question. Pick the pair closest to your sheet: Category then Cost (€), Date then Hours, or Supplier then Qty (hours logs often use Date then Name). Restore original order by sorting on ID. Optional stretch: paste one totals column as values onto a Summary area. Save as {{code:sm3_from_template_v3}} inside {{code:09_specialism/sm3}}.
    Success criteria:
    • An ID (or row-number) column is present so original order can be restored
    • You sorted the full data block once by a single column and once by two columns, with every related cell still matching its row
    • After the experiments, sorting by ID returns the sheet to the earlier order
    • The file {{code:sm3_from_template_v3}} is saved inside {{code:09_specialism/sm3}}
    • Optional: one totals column pasted as values only (formula bar shows a number, not =)
    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 - 2025. 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