Module 13 · Dynamic Arrays · Every genre once

Nadia Rahman runs Inkwell Books and loves data

Book week starts on Monday. Nadia wants a sign for each genre in the shop window. The shop list has 12 books, and the genres repeat. Nadia wants each genre one time, in a list that updates itself.

Loading the spreadsheet…

Module 13 · Dynamic Arrays

Every genre once

Nadia Rahman, runs Inkwell Books and loves data
Nadia Rahman runs Inkwell Books and loves data

Book week starts on Monday. Nadia wants a sign for each genre in the shop window. The shop list has 12 books, and the genres repeat. Nadia wants each genre one time, in a list that updates itself.

Steps

  1. Get each value once

    UNIQUE returns each value of a range one time. You type the formula in one cell. Excel writes the results in the cells below. This is the spill range.

    How to do it

    1. Click the first cell of the new list.
    2. Type =UNIQUE( and the range without the title.
    3. Press Enter.
    4. Only the first cell has the formula. Do not type in the spill range.
    5. When you click a cell in the spill range, a thin blue border shows the full range.

    =UNIQUE(D5:D16)

    Task: Nadia wants each cover color one time. Put the list in cell I5.

  2. When the spill range is not empty

    A spill range needs empty cells. If a cell in the way has a value, the formula shows #SPILL!. Clear the cell, and the list appears.

    How to do it

    1. Click cell K5.
    2. Type =UNIQUE(C5:C16)
    3. Press Enter.
    4. Click cell K9.
    5. Clear the cell in the spill range.
    6. #SPILL! means: a cell in the spill range is not empty.
    7. A dashed border shows the cells that the formula needs. Click the green triangle next to #SPILL!, then Select Obstructing Cells. Excel selects the cell in the way.

    =UNIQUE(C5:C16)

    Task: List each book format one time in cell L5. The formats are in column E. Clear the cell that is in the way.