Dashboard Mode - Custom sorting rules
Dashboard Goal
Sort a list of products by a custom priority order instead of alphabetical or numeric order.
Sort a list of products by a custom priority order instead of alphabetical or numeric order.
| Product | Category | Price |
|---|---|---|
| Banana | Fruit | 0.5 |
| Carrot | Vegetable | 0.3 |
| Apple | Fruit | 0.7 |
| Broccoli | Vegetable | 1.2 |
| Orange | Fruit | 0.6 |
| Potato | Vegetable | 0.4 |
| Strawberry | Fruit | 1.5 |
A10:A11 contains: Fruit, VegetableD2, formula:=MATCH(B2,$A$10:$A$11,0)SORTBY formula to sort by custom order and then by price ascending.F2, formula:=SORTBY(A2:C8, D2:D8, 1, C2:C8, 1)+----------------------+-----------------------+ | Custom Sort Order | Sorted Product List | | (A10:A11) | (F2:H8) | +----------------------+-----------------------+ | Sample Data | Helper Column (hidden) | | (A1:C8) | (D2:D8) | +----------------------+-----------------------+
Change the order of categories in the custom sort order table (cells A10:A11). The helper column updates automatically. The sorted product list updates to reflect the new category priority.
If you change the custom sort order to have Vegetable first and Fruit second in A10:A11, which product category appears first in the sorted product list?