Mini-Project 6: Automated Self-Refreshing Regional Sales Leaderboard Engine
Overview & Learning Objectives
In this capstone project for Week 6, you will construct a dynamic, self-updating sales leaderboard for 10 regional branch managers. Using FILTER, SORT, and CHOOSECOLS, the board automatically updates whenever a city or product category is selected from a dropdown.
- Combine FILTER and SORT into a single dynamic formula pipeline.
- Rank the Top 5 sales reps dynamically by revenue.
- Extract clean columns without helper columns using CHOOSECOLS.
Industry Standard
Standard: Modern enterprise sales operations teams build executive KPI boards using dynamic array pipelines rather than clunky macros.
Real-World Example: Multi-Branch Interactive Live Sales Leaderboard
Your sales VP needs to toggle between cities ("Delhi", "Mumbai", "Bengaluru") in cell G1 and instantly see the Top 5 performing sales reps ranked by commission revenue with zero mouse clicks.
| Rank | Sales Rep Name | City Branch | Closed Revenue (₹) | Commission (₹) |
|---|---|---|---|---|
| #1 | Vikram Malhotra | Mumbai | 4,50,000 | 45,000 |
| #2 | Ananya Sharma | Mumbai | 3,80,000 | 38,000 |
| #3 | Karan Verma | Mumbai | 3,10,000 | 31,000 |
| #4 | Pooja Iyer | Mumbai | 2,90,000 | 29,000 |
Leaderboard Formula Pipeline
=TAKE(SORT(FILTER(SalesTable, SalesTable[City]=G1, "No Records"), 4, -1), 5)
Parameters Breakdown
FILTER(..., City=G1): Extracts only rows matching the city selected in dropdown G1.SORT(..., 4, -1): Sorts the filtered rows by Column 4 (Revenue) in descending order.TAKE(..., 5): Grabs the Top 5 rows from the sorted output.
Sample Walkthrough (Q&A):
Question: How do you add a dynamic Rank numbering (#1, #2, #3...) beside a spilled 5-row leaderboard?
Formula / Action: `=SEQUENCE(5)` or `="#" & SEQUENCE(5)` in the adjacent rank column.
Result: Spills: #1, #2, #3, #4, #5 dynamically matching the leaderboard rows.
Explanation: SEQUENCE generates consecutive number arrays dynamically.
Common Mistakes & Limitations
- Not wrapping FILTER in an `[if_empty]` parameter, causing `#CALC!` if a city has no sales.
- Hardcoding row numbers instead of letting dynamic arrays spill.
Keyboard Shortcuts
| Action | Windows | Mac |
|---|---|---|
| Expand Formula Bar | Ctrl + Shift + U | Ctrl + Shift + U |
| Open Dropdown List | Alt + Down Arrow | Option + Down Arrow |
Pro Tips & Modern Alternatives
- Use `CHOOSECOLS(..., 1, 4)` if you only want to show the Rep Name and Revenue columns on the executive dashboard.
- Add conditional formatting data bars to the revenue column for instant visual comparison.