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

Percentages and Comparisons

Learn to compare data from two groups of different sizes fairly by converting counts to percentages using absolute references to the total. Round the results, rank options and add a colour scale to highlight the largest and smallest values.

Teacher Class Feed

Load previous activity

    1 - Introduction ~5 mins

    Welcome

    Illustration for IntroductionRaw counts mislead when groups differ in size. Today lock percentages to each total, rank both groups, and colour-scale the shares.

    • Locked percentages, RANK.EQ and colour scales on two groups
    • One sentence stating what the comparison shows

    Warm-up

    TY1: 2 bus of 8. TY2: 3 bus of 12. Who uses the bus more? Both are 25%: raw counts made TY2 look bigger.

    Get ready

    Open {{code:02_survey_analysis}} in {{code:Digital_Spreadsheets}}. The practice runs on a sample you paste in the next task.

    2 - Key Concepts ~5 mins

    ConceptWhy it mattersExample
    Percentage of a total: count ÷ group totalFair compare when sizes differ2 bus users of 8 is 25%
    Absolute reference: $ locks a cell on fill-downOne % formula fills a whole columnLock the total: B2/$B$8, then fill so every row still divides by B8
    RANK.EQ and colour scale: order and paint high to lowEye finds top and bottom; ties share a rankThree 25% shares all rank 1; next is 4

    COUNTIFS and ROUND appear as short callouts when you type those formulas in the build.

    3 - Step-by-step Task: Build a Two-group Comparison ~25 mins

    Build sheet {{code:practice_compare}} on the sample journey data. Our sample groups are both 8, so counts are easy to check. The same % method is what you use when totals differ, as in the warm-up.

    Block A (~15 min): counts, totals, locked rounded %, percent format, then stop at the checkpoint. Block B (~10 min): RANK.EQ, colour scales on both groups, one finding sentence. Your real portfolio sheet {{code:04_compare}} comes later.

    Formula pieces for COUNTIFS: range1 = Class column, criteria1 = group label (e.g. "TY1"), range2 = Transport column, criteria2 = option cell (A2). Bus/TY1 should return 2.
    RANK.EQ: first argument = the %, second = the % list locked with $, third = 0 means largest = rank 1. Ties share a rank.

    First, the sample: add a sheet named {{code:sample_compare}}, select {{cell:A1}} and paste the whole table below (headers in row 1, data in rows 2–17). The practice formulas read this sheet, so your numbers match the checks whatever your own survey holds.

    Sample columns: Response, Class, Transport, Minutes, Cost_per_week, Would_cycle, Journey_rating.

    ResponseClassTransportMinutesCost_per_weekWould_cycleJourney_rating
    1TY1Bus2512No3
    2TY1Walk150Yes4
    3TY1Car208No3
    4TY1Bus3012No2
    5TY1Walk180Yes5
    6TY1Car2210No3
    7TY1Cycle200Yes4
    8TY1Train3515No3
    9TY2Bus2812No3
    10TY2Bus3212No2
    11TY2Walk120Yes5
    12TY2Car189No4
    13TY2Bus2612No3
    14TY2Walk160Yes4
    15TY2Car2410No3
    16TY2Cycle220Yes5

    Expected counts: TY1 Bus/Walk/Car/Cycle/Train = 2,2,2,1,1 (total 8). TY2 = 3,2,2,1,0 (total 8). TY1 bus 25%; TY2 bus 37.5%.

    4 - Common Issues ~2 mins

    Common Issues

    IssueSolution
    Every % looks huge or identical after fill-downEdit the first % formula, lock the total with $ (F4 or type $ yourself), fill down again
    RANK.EQ errors or odd tiesPoint at the % column only, use 0 for largest-first; equal shares share a rank
    Colour scale does nothingSelect the % cells first, then apply the scale to that selection only
    You see 13% or 38% instead of 12.5% / 37.5%Select the % range and click Increase Decimal once

    5 - Portfolio Build: 04_compare ~15 mins

    Independent Practice

    Your goal: Build a fair two-group comparison so a reader sees which option leads without raw-count bias.
    Time: ~15 minutes
    Task: Keep {{code:practice_compare}} as your walkthrough. In {{code:02_survey_analysis}} add sheet {{code:04_compare}}. Compare two groups on one question with counts, locked rounded %, ranks and colour scales on both sides, plus one finding sentence.
    Adapt checks: (1) Write your two group names in a spare cell. (2) Replace {{code:"TY1"}}/{{code:"TY2"}} with those names. (3) Point COUNTIFS ranges at your group and option columns on {{code:clean_data}}. (4) Confirm each total matches how many responses that group has.
    Minimum path: same seven columns as practice. If you have fewer than ten answers, copy the practice layout onto {{code:04_compare}} and write a finding that names your real groups (or the sample groups if that is all you have). The sample still earns portfolio credit when the sheet is complete.
    Success criteria:
    • Sheet {{code:04_compare}} compares two clear groups on one question
    • Percentages lock to each group total and stay tidy when a count changes
    • Both groups are ranked and colour-scaled
    • One sentence under the table states what the comparison shows
    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