Count unique values

Exercise 5 of 11 Premium

How many different categories are there? Use one formula that still works when new categories are added.

Checking your plan…

inventory.xlsx

ABCDE
1SKUProductCategoryPriceStock
2
3
4
5
6
7
8

About dynamic arrays in Excel

Modern Excel formulas can return a whole list that spills into the cells below. Practice FILTER, UNIQUE and SORTBY on an inventory table, and combine them with SUM for one-cell answers.

Functions you can use here

  • FILTER(array, include, [if_empty])
  • UNIQUE(array, [by_col], [exactly_once])
  • SORTBY(array, by_array1, [sort_order1], …)
  • LET(name1, value1, [name2, value2, …], calculation)