Let one chart or tile switch between revenue, units, and margin with a single control. CHOOSE (or INDEX) returns the selected metric’s value from an index a button or dropdown sets.
The example
Selector = 2 → show Units.
| A | B | |
|---|---|---|
| 1 | Selector | Shows |
| 2 | 2 (Units) | 5,200 |
The formula
The formula:
How it works
How it works:
CHOOSE(index, a, b, c)returns the index-th argument — 1→a, 2→b, 3→c.- Drive the index from option buttons (form control) or a small dropdown.
- Point a chart series at the CHOOSE cell (or a column built with it) so it switches too.
- For many metrics,
INDEX(metric_row, selector)scales better than a long CHOOSE.
One toggle, whole dashboard. Put the selector in a single cell and build every tile and chart series off CHOOSE/INDEX of it. A form-control option group or a dropdown sets the number, and the entire view flips between metrics — the same one-driver pattern as the dropdown dashboard, applied to what is shown rather than which item.
Try it: interactive demo
Choose a metric.
Variations
INDEX for many metrics
Scales better:
Label too
Switch the title:
Switch a whole column
Per row:
Pitfalls & errors
Index from 1. CHOOSE is 1-based; a 0 or blank selector errors.
Match the order. Argument order must line up with the selector meaning.
INDEX for length. Many options? INDEX of a range beats a sprawling CHOOSE.
Practice workbook
Frequently asked questions
How do I toggle a dashboard metric in Excel?
What if I have many metrics?
How do I switch the chart title too?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class