Module 13 · Dynamic Arrays · Count the spill

Nadia Rahman runs Inkwell Books and loves data

The book week poster says how many genres and authors Inkwell Books has. The lists in F5 and H5 change when the shop list changes. Nadia wants counts that change with them.

Loading the spreadsheet…

Module 13 · Dynamic Arrays

Count the spill

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

The book week poster says how many genres and authors Inkwell Books has. The lists in F5 and H5 change when the shop list changes. Nadia wants counts that change with them.

Steps

  1. Count a spill range with #

    F5# means the full spill range that starts in F5. When the list gets longer or shorter, F5# changes too.

    How to do it

    1. Click cell K5.
    2. Type the function and the first cell of the spill range with #.
    3. Press Enter.
    4. Change a value in the source list.
    5. Type Cozy Crime.
    6. COUNTA counts the values. ROWS counts the rows. For a list in one column, both give the same number.

    =COUNTA(F5#)

    Task: Count the authors in the spill range that starts in H5. Use ROWS. Put the number in cell K6.

  2. Use a spill range in another formula

    Any formula can use a spill range. =SORT(F5#) sorts the full list. When the list changes, the sorted list changes too.

    How to do it

    1. Click cell M5.
    2. Type =SORT(F5#)
    3. Press Enter.

    =SORT(F5#)

    Task: Sort the authors from A to Z. Put the list in cell N5.