Module 5 · Logical · No #DIV/0! on the board

Priya Nair runs Lantern Fest, a small music festival

Fans rate the bands on the info board. Some bands have no votes yet, and the board shows #DIV/0!. Some bands have no next show, and the board shows #N/A. The fans think the board is broken.

Loading the spreadsheet…

Module 5 · Logical

No #DIV/0! on the board

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

Fans rate the bands on the info board. Some bands have no votes yet, and the board shows #DIV/0!. Some bands have no next show, and the board shows #N/A. The fans think the board is broken.

Steps

  1. Catch errors with IFERROR

    IFERROR checks a formula. If the formula gives an error, IFERROR gives back a different value.

    How to do it

    1. Select the cell with the error.
    2. Type =IFERROR(
    3. Type the formula and a comma.
    4. Type the value for an error and a closing bracket.
    5. Press Enter.

    =IFERROR(C5/D5,"No votes yet")

    Task: Fix the other ratings. Fill in E6:E12.

  2. Catch #N/A with IFNA

    IFNA catches only the error #N/A. A lookup gives #N/A if it does not find the value.

    How to do it

    1. Click cell F5.
    2. Type =IFNA(XLOOKUP(
    3. Type the lookup, close it with a bracket and type a comma.
    4. Type "Not planned" and a closing bracket.
    5. Press Enter.
    6. IFNA catches only #N/A. Other errors, for example #DIV/0!, still show. So you still see real mistakes.

    =IFNA(XLOOKUP(B5,H:H,I:I),"Not planned")

    Task: Find the next show of the other bands. Fill in F6:F12.