Module 13 · Dynamic Arrays · Name the steps

Nadia Rahman runs Inkwell Books and loves data

Book week is over. Nadia writes the newsletter Inkwell Picks with the best numbers. Her formulas are long now, and Sam cannot read them. LET gives each step a name.

Loading the spreadsheet…

Module 13 · Dynamic Arrays

Name the steps

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

Book week is over. Nadia writes the newsletter Inkwell Picks with the best numbers. Her formulas are long now, and Sam cannot read them. LET gives each step a name.

Steps

  1. Give a calculation a name

    LET gives names to values. First a name, then its value. You can add more pairs. The last argument is the calculation that uses the names.

    How to do it

    1. Click cell H5.
    2. Type =LET(, a name, a comma, its value and a comma.
    3. Type the next name, its value and a comma.
    4. Type the calculation with the names and a closing bracket.
    5. Press Enter.
    6. A name has no spaces and is not a cell reference. Use the same spelling each time.

    =LET(part,SUMIFS(E5:E16,C5:C16,"Fantasy"),total,SUM(E5:E16),part/total)

    Task: Calculate the Crime share with LET. Put it in cell H6.

  2. Name a list

    A name in LET can also be a list, for example the result of FILTER. The calculation can then sort or count the list.

    How to do it

    1. Click cell J5.
    2. Type =LET( with a name for the list, the FILTER formula and a comma.
    3. Type the calculation with the name and a closing bracket.
    4. Press Enter.

    =LET(cheap,FILTER(B5:B16,D5:D16<10),SORT(cheap))

    Task: In cell L5, count the books that sold more than 50. Use LET with a name for the FILTER list, and ROWS.