Module 5 · Logical · Stage slots

Priya Nair runs Lantern Fest, a small music festival

The festival is over, and it was a success. Priya already plans next year. Bands with more fans play later in the day. Long sets get more drink tokens. Two answers are not enough now.

Loading the spreadsheet…

Module 5 · Logical

Stage slots

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

The festival is over, and it was a success. Priya already plans next year. Bands with more fans play later in the day. Long sets get more drink tokens. Two answers are not enough now.

Steps

  1. Check many cases with IFS

    IFS checks conditions in order. It gives back the result of the first true condition.

    How to do it

    1. Select the cell for the result.
    2. Type =IFS(
    3. Type pair 1: a test, a comma, the result and a comma.
    4. Type the next pairs. Start with the largest number.
    5. Type C5>=2000,"Afternoon" and a comma.
    6. Type TRUE and a result for all other cases. Type a closing bracket.
    7. Press Enter.

    =IFS(C5>=10000,"Headliner",C5>=5000,"Evening",C5>=2000,"Afternoon",TRUE,"Opener")

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

  2. Put an IF inside an IF

    You can put an IF inside another IF. The second IF is the false part of the first IF.

    How to do it

    1. Click cell F5.
    2. Type the first IF with the test and the result if true. Type a comma.
    3. Type the second IF as the false part. Close both brackets.
    4. Press Enter.
    5. IFS can do the same: =IFS(D5>=90,4,D5>=60,3,TRUE,2).

    =IF(D5>=90,4,IF(D5>=60,3,2))

    Task: Find the drink tokens for the other bands. Fill in F6:F12.