Charts and Conditional Formatting
Pick the right chart for your message, avoid misleading designs, add trendlines, and highlight key values and whole rows with conditional formatting.
Welcome back!
Step 1 of 13Learn
Pick the chart from the message
Two analysts get the same monthly sales data. One makes a pie chart with twelve slices; nobody can tell which month was best. The other makes a line chart with a title, "Sales grew every month after the March price cut", and the meeting is over in two minutes. The chart type should follow from the one message you want the reader to take away:
- Compare categories (sales by region, scores by student): column or bar chart. Use horizontal bars when labels are long or there are many categories, and sort them by value.
- Show a trend over time (monthly revenue, weekly visits): line chart, with time running left to right.
- Show parts of a whole (budget shares): pie or doughnut only with a few slices (about five or fewer) that add up to 100%; otherwise use a stacked bar or a sorted bar chart.
- Show a relationship between two numbers (ad spend vs. sales, height vs. weight): scatter chart.
- Show a distribution (how many orders fall in each size band): histogram.
Before inserting anything, write the takeaway as a sentence. If you can't, you're not ready to chart yet. Then use that sentence as the chart title: "West led every quarter" is far more useful than "Revenue by Region".
Step 2 of 13Practice · Chart
Sales grew every month after the March price cut
Tap the low point where the turnaround began.
Tap the point that answers the question, then press Check.
| Item | Sales |
|---|---|
| Jan | $40 |
| Feb | $39 |
| Mar | $37 |
| Apr | $42 |
| May | $46 |
| Jun | $49 |
| Jul | $53 |
| Aug | $56 |
Step 3 of 13Practice · Match the pairs
Match each message to the chart type that shows it best.
Tap an answer, then tap the place where it belongs (or drag it there).
- Website visits rose steadily over 24 months
- Region West sold more than East, North and South
- Rent takes 40% of a four-category budget
- Higher ad spend goes with higher sales across 50 stores
- Most deliveries take between 2 and 4 days
Step 4 of 13Learn
Building a chart that explains itself
To create a chart, select the data including the headers and choose Insert > Recommended Charts (or press Alt+F1 for an instant default chart on the same sheet). Excel uses the headers as series names and axis labels.
Then edit the chart so it explains itself. Click the chart and use the + button (Chart Elements) or the Chart Design tab:
- Chart title: replace "Chart Title" with the takeaway sentence.
- Axis titles: add units, such as "Revenue ($ thousands)" or "Month".
- Data labels: useful for a handful of bars; clutter on a line with 50 points.
- Legend: delete it when there's only one series, or label lines directly.
If the chart is built from an Excel Table, it grows when you add rows, just like formulas based on the table.
For trends, you can add a trendline (Chart Elements > Trendline). A linear trendline is the straight line that best fits the points, written y = slope × x + intercept. The slope is the average change per period: a slope of 1,200 on monthly sales means sales rose by about $1,200 a month. The worksheet functions SLOPE, INTERCEPT and FORECAST.LINEAR calculate the same line in cells. Treat any forecast from a trendline as a rough guide: it assumes the past pattern continues.
Step 5 of 13Explore
Linear trendline and forecast
Monthly sales follow y = intercept + slope × month. Move the sliders to see how each part changes the line, and read the forecast for month 13.
- Forecast for month 13
- 35,600 $
- Change over 12 months
- 14,400 $
Step 6 of 13Learn
Charts that mislead (and how to avoid them)
A chart can be technically accurate and still give the wrong impression. Watch for these common problems in your own charts and other people's:
- A truncated axis on a column chart. If the vertical axis starts at 95 instead of 0, a change from 96 to 98 looks like a doubling. Column and bar lengths should start at zero. Line charts can zoom in on a range, but label the axis clearly.
- 3D effects. Tilted pies and 3D columns distort sizes; the slice nearest the viewer looks bigger. Use flat charts.
- Too many pie slices. Past about five slices, the eye can't compare angles. Group small items into "Other" or switch to a sorted bar chart.
- Unsorted bars. Sorting bars largest to smallest makes the ranking instantly visible, unless the categories have a natural order such as months.
- Two vertical axes. A combo chart with different scales on the left and right can make two unrelated series appear linked. Use it sparingly and label both axes.
- Rainbow colors. Use one color for most bars and a strong highlight for the one that matters.
The test: show the chart to someone for five seconds and ask what it says. If their answer matches your title, the chart works.
Step 7 of 13Practice · Chart
A truncated axis exaggerates a small change
Which bar looks far bigger than it really is compared with the other?
Tap the bar that answers the question, then press Check.
Step 8 of 13Practice · Spot the mistake
An analyst made these design choices for a column chart of sales by region. Tap the choices that make the chart misleading or harder to read.
Step 9 of 13Learn
Conditional formatting: let the numbers flag themselves
Conditional formatting changes a cell's look based on its value, so problems and standouts jump out of a dense table. Find it on the Home tab.
- Highlight Cells Rules: greater than, less than, between, equal to, text that contains, dates occurring (yesterday, next week), and duplicate values.
- Top/Bottom Rules: top 10 items, bottom 10%, above or below average.
- Data bars: a small bar inside each cell, proportional to its value, like a chart in the table.
- Color scales: shade cells from low to high, useful for heat maps of sales by month and region.
- Icon sets: arrows or traffic lights for up, flat and down.
The most powerful option is Use a formula to determine which cells to format. To highlight entire rows where the status in column E is "Overdue", select A2:F100 and enter the rule =$E2="Overdue". The $ locks the column, so every cell in the row checks column E; the row number stays relative, so each row checks its own status. Write the formula as if for the top-left cell of your selection.
Use formatting with restraint. When everything is red, nothing stands out. Manage, edit and reorder rules in Conditional Formatting > Manage Rules, where you can also see exactly which range each rule applies to.
Step 10 of 13Practice · Diagram
Kinds of conditional formatting
Which kind can highlight a whole row based on the value in one column?
Tap the shape that answers the question, then press Check.
- Conditional formatting
- Highlight Cells Rules
Greater than, contains, dates occurring, duplicates.
- Top/Bottom Rules
Top 10, bottom 10%, above average.
- Data Bars
A bar inside each cell, length by value.
- Color Scales
A gradient from low to high.
- Icon Sets
- Formula-based rule
Any TRUE/FALSE formula, which can format entire rows.
Step 11 of 13Practice · Fill in the blanks
Fill in the blanks
To highlight each whole row in A2:F100 where column E says "Overdue", the conditional formatting rule is =="Overdue".
Step 12 of 13Note
Step 13 of 13Practice · Choose one
You need to show how monthly revenue changed over the last 24 months for a board meeting. Which chart is the best choice?
Lesson complete!