Module 13 · Dynamic Arrays
Every genre once

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
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
- Click the first cell of the new list.
- Type =UNIQUE( and the range without the title.
- Press Enter.
- Only the first cell has the formula. Do not type in the spill range.
- 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.
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
- Click cell K5.
- Type =UNIQUE(C5:C16)
- Press Enter.
- Click cell K9.
- Clear the cell in the spill range.
- #SPILL! means: a cell in the spill range is not empty.
- 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.