Excel Charts, Conditional Formatting & What-If Analysis
Turn numbers into visuals, highlight what matters, and model "what if" scenarios โ the skills that make analysis persuasive and decision-ready.
Learning Objectives
- Choose the right chart type for comparison, trend, part-to-whole, and relationship.
- Use Conditional Formatting to highlight values, outliers, and trends.
- Use Goal Seek to find the input that hits a target result.
- Use Data Tables to see how one/two variables affect a formula.
- Use Scenario Manager to compare multiple input sets (best/worst/base).
1. Charts โ Choosing the Right One
The right chart makes the insight obvious; the wrong one hides it. Match the chart to the question.
| Chart | Best for | Example |
|---|---|---|
| Column / Bar | comparing categories | sales by region |
| Line | trend over time | monthly revenue |
| Pie / Doughnut | part-to-whole (one series) | market share |
| Scatter | relationship between two numbers | price vs units sold |
| Area | cumulative trend / magnitude | cumulative sales |
| Combo | two different scales together | sales + profit % |
2. Conditional Formatting
Conditional Formatting applies visual rules to cells automatically โ colors, data bars, icons โ based on their values. It makes patterns and outliers jump out without manual formatting.
Common rule types
- Highlight Cell Rules โ greater than, less than, between, duplicates.
- Top/Bottom Rules โ top 10 items, above/below average.
- Data Bars โ a mini in-cell bar showing relative size.
- Color Scales โ gradient from low to high.
- Icon Sets โ arrows/flags for quick status.
3. What-If Analysis โ an Overview
What-If tools let you test how changing inputs affects a result, without rewriting formulas. Excel has three, each solving a different problem.
| Tool | Question it answers |
|---|---|
| Goal Seek | "What input do I need to hit this target?" |
| Data Table | "How does the result change across a range of inputs?" |
| Scenario Manager | "How do several inputs compare together (best/worst/base)?" |
4. Goal Seek
Goal Seek works backwards: you tell Excel the result you want, and it finds the one input that produces it.
Data โ What-If Analysis โ Goal Seek
Set cell: the formula cell (e.g. profit)
To value: your target (e.g. 5000)
By changing: the input cell (e.g. price)
5. Data Tables
A Data Table shows how a formula changes across a range of one or two input values โ like a mini sensitivity grid.
Data โ What-If Analysis โ Data Table
Row input cell: (for a two-variable table)
Column input cell: the variable you're testing
Use it to answer: "What would profit be at 100, 200, 300โฆ units?" in one grid.
6. Scenario Manager
Scenario Manager compares multiple sets of inputs โ a "best case", "base case", and "worst case" โ and summarizes them side by side.
Data โ What-If Analysis โ Scenario Manager โ Add Scenario
7. Sparklines
Sparklines are tiny charts inside a single cell โ a quick visual of a row's trend without a full chart. Great for dense dashboards and tables.
8. Interview Questions (with Model Answers)
Charts, conditional formatting, and what-if questions. Self-test before revealing.
IQ1. Which chart would you use to show a trend over time?
Model answer: "A line chart โ it shows change over time most clearly. For comparing categories I'd use a bar/column chart, and for part-to-whole a pie chart."
IQ2. What is Conditional Formatting, and how do you use it?
Model answer: "It applies visual rules to cells automatically based on their values โ like highlighting values above a threshold, top 10 items, or duplicates. I use it to surface outliers and patterns without manually coloring cells."
IQ3. How do you highlight outliers or top values using Conditional Formatting?
Model answer: "I use Top/Bottom Rules for the top N or above-average values, Highlight Cell Rules for a threshold like 'greater than 100', and Data Bars or Color Scales to visualize relative size."
IQ4. What is Goal Seek, and when would you use it?
Model answer: "Goal Seek works backwards โ I set a formula cell to a target value and Excel finds the single input that produces it. For example, how many units to sell to reach a โน50,000 profit."
IQ5. What's the difference between Goal Seek and Scenario Manager?
Model answer: "Goal Seek solves for one target using one input. Scenario Manager compares multiple complete sets of inputs โ like best, base, and worst case โ side by side."
IQ6. What is a Data Table in What-If analysis?
Model answer: "A Data Table shows how a formula changes across a range of one or two input values โ a sensitivity grid. I'd use it to see profit at 100, 200, 300 units in a single table."
IQ7. What's the difference between a Data Table and Scenario Manager?
Model answer: "A Data Table varies one or two inputs across a continuous range. Scenario Manager compares a handful of named, complete scenarios โ each with multiple inputs set together."
IQ8. How do you decide between a bar chart and a line chart?
Model answer: "Bar/column for comparing distinct categories; line for a continuous trend, usually over time. If the x-axis is time, line is usually the better choice."
IQ9. What are Sparklines, and when would you use them?
Model answer: "Sparklines are tiny charts inside a single cell that show a row's trend at a glance. I use them in dense tables and dashboards where a full chart would be too large."
Hands-On Project: Visualize and Model
Using a simple sales dataset (region, month, sales, target, units, price), complete the following.
Steps
- Create a line chart showing sales by month.
- Create a bar chart comparing total sales by region.
- Apply conditional formatting to highlight any month where sales fell below target.
- Use Goal Seek to find the price that produces a target profit of โน50,000.
- Create a Data Table showing profit across a range of units sold.
View Solution / Walkthrough
- Select month + sales โ Insert โ Line Chart.
- Select region + total sales โ Insert โ Bar Chart.
- Select the sales column โ Home โ Conditional Formatting โ Highlight Cell Rules โ Less Than โ point to the target cell.
- Data โ What-If Analysis โ Goal Seek โ Set profit cell = 50000, By changing price cell.
- Set up a formula for profit โ Data โ What-If Analysis โ Data Table โ column input = units.
Together these mirror the daily "visualize + highlight + model" cycle of an analyst.
Key Takeaways
Line = trend over time; bar = compare categories; pie = part-to-whole.
Conditional Formatting surfaces outliers and patterns automatically.
Goal Seek finds the input for a target result (one input, one target).
Data Tables vary one/two inputs; Scenario Manager compares full input sets.
Sparklines pack a mini trend chart into a single cell.
Objective Questions โ Test Your Understanding
Q1. Which chart type is best for showing a trend over time?
Q2. Which Conditional Formatting rule highlights values above a threshold?
Q3. What does Goal Seek do?
Q4. Which tool compares multiple complete input sets (best/worst/base case)?
Q5. Which chart is best for showing part-to-whole (a single series)?