Module 5 · Logical · Late fees

Priya Nair runs Lantern Fest, a small music festival

Saturday is the big day. Bands that arrive late lose 10% of their fee. And every band needs a sound check before it plays. Priya has no time for math. You let Excel do it.

Loading the spreadsheet…

Module 5 · Logical

Late fees

Priya Nair, runs Lantern Fest, a small music festival
Priya Nair runs Lantern Fest, a small music festival

Saturday is the big day. Bands that arrive late lose 10% of their fee. And every band needs a sound check before it plays. Priya has no time for math. You let Excel do it.

Steps

  1. Calculate inside IF

    IF can give back a calculation. Put a formula in the true part or in the false part.

    How to do it

    1. Select the cell for the result.
    2. Type =IF( and the test. Type a comma.
    3. Type the calculation for true. Type a comma.
    4. Type the value for false and a closing bracket.
    5. Press Enter.

    =IF(D5>0,C5*0.9,C5)

    Task: Find the pay for the other bands. Fill in E6:E12.

  2. Test for not equal with <>

    <> means not equal to. = means equal to. You can compare text too. Put the text in quotation marks.

    How to do it

    1. Click cell G5.
    2. Type the test with <> and the text in quotation marks. Type a comma.
    3. Type the result if true and "" for an empty result. Type a closing bracket.
    4. Press Enter.
    5. = means equal to. =IF(F5="Done","","Call") gives the same result.

    =IF(F5<>"Done","Call","")

    Task: Check the other bands. Fill in G6:G12.