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

Logical Formulas with Standard Functions: Recap and Extend

This lesson recaps the IF function and shows how to use it alongside SUMIF and COUNTIF on the same sheet. You will create labelled formulas that answer questions about your project data using decision-making logic.

Teacher Class Feed

Load previous activity

    1 - Introduction ~5 mins

    Illustration for Introduction

    Today you will

    • use IF to give each row a clear status
    • use SUMIF and COUNTIF to add up or count only the rows you want
    • add one labelled formula to your own project workbook
    Warm-up

    Think of one number in your Something Real project that matters when it crosses a line, like 20 hours of Work Experience. What question would you ask the spreadsheet about it?

    2 - Key Concepts ~5 mins

    IF tests one condition. It gives one answer if the condition is true and a different answer if it is false.

    SUMIF adds up numbers only in the rows that match a rule, such as Online sales.

    COUNTIF counts how many rows match a rule, such as how many items are on target.

    Example

    {{code:=IF(C2>=50,"On target","Below target")}} shows On target when a tote bag sells 50 or more.

    Later you can also try nested IF, IFS and AVERAGEIF.

    3 - Step-by-step Task ~15 mins

    You will build Aoife's tote-bag sheet with your teacher. Aoife sells tote bags at a local market and online. Follow the steps in the box below. The steps marked Stretch are extra, so only do them if you have time.

    Type this into your new sheet:

    ItemChannelUnits soldPrice (€)Revenue (€)Target status
    Mini toteOnline4212
    Market toteMarket5815
    Shopper bagOnline3518
    Gift setMarket5125
    Pencil caseOnline678

    When you finish, Online revenue should show {{code:1670}} and Items on target should show {{code:3}}.

    4 - Common Issues ~3 mins

    Common snags

    • The formula shows as text. Make sure the cell starts with {{code:=}} and has no space before it.
    • You see {{code:#NAME?}} The function name is spelled wrong, so type it again carefully.
    • SUMIF or COUNTIF shows 0. Check that the word in quotes matches the sheet exactly, with no extra spaces.
    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