Advanced Excel for Data AnalystsLesson 42 of 49
Lesson 42 of 49

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.

RankSales Rep NameCity BranchClosed Revenue (₹)Commission (₹)
#1Vikram MalhotraMumbai4,50,00045,000
#2Ananya SharmaMumbai3,80,00038,000
#3Karan VermaMumbai3,10,00031,000
#4Pooja IyerMumbai2,90,00029,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

ActionWindowsMac
Expand Formula BarCtrl + Shift + UCtrl + Shift + U
Open Dropdown ListAlt + Down ArrowOption + 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.