Sub topic 11
Format the dashboard for readability
This chapter assumes you have a Data tab, pivot tables, charts on a separate dashboard tab, at least one slicer, and KPI cells that use SUBTOTAL. It also assumes you know the Format menu and the toolbar. Here you make that working dashboard easy to scan, without breaking how it responds to the slicers.
What formatting changes and what it leaves alone
Formatting changes how a value looks. It does not change the value. A revenue cell showing $1.2M still holds 1200000, and a chart that reads that cell still plots 1200000. So you can restyle freely, with three exceptions:
- Moving or resizing a chart does not change its data range or its slicer connection.
- Moving a pivot table, or putting content where it needs to grow, can produce an overflow error.
- Hiding rows in the Data tab changes SUBTOTAL results, because code 109 skips hidden rows, whether you hid them by hand or a filter hid them.
Lay out a grid
Viewers read a dashboard from the top left. Put the slicers and KPIs first, then the main chart, then the supporting charts.
- Hide gridlines on the dashboard tab only: View > Show > Gridlines. The sheet then looks like a page, and charts stand out.
- Set uniform column widths. Select the columns you use, right-click a column header, choose Resize columns, and enter one width, for example 100 pixels. With equal columns, a KPI tile or chart that spans a fixed number of columns lines up with the rest.
- Put a title in A1 with a large font. Add a subtitle line, such as the data source and the last refresh date.
- Reserve one row band for slicers, one for KPIs, and the rest for charts. Leave an empty row or column between bands. White space separates sections more cleanly than borders.
- Freeze the title and slicer band: View > Freeze > Up to current row. Slicers float above cells and do not scroll with the frozen band, so keep them within the visible first screen and check them after freezing.
Merge cells only for KPI tiles and the title, for example Format > Merge cells > Merge horizontally. Merged cells in a range that formulas or sorting use cause problems, but a dashboard tab has neither.
Charts and slicers float over the grid. Drag them so their edges meet the column and row boundaries. Use the same width for charts in the same row.
Format the KPI cells
Show each KPI as a label above a large value. Put labels in one row and values in the row below:
| Cell | Content | Number format |
|---|---|---|
| B3 | `Total revenue` | Plain text |
| B4 | `=SUBTOTAL(109, Data!F2:F1000)` | Currency |
| C3 | `Orders` | Plain text |
| C4 | `=SUBTOTAL(103, Data!A2:A1000)` | Number, no decimals |
| D3 | `Average order value` | Plain text |
| D4 | `=IFERROR(SUBTOTAL(109, Data!F2:F1000) / SUBTOTAL(103, Data!A2:A1000), 0)` | Currency, two decimals |
Make the value row 24 to 32 pt, bold, and centered. Make the label row 10 to 11 pt in gray. Use Format > Number for built-in formats. For anything else, use Format > Number > Custom number format.
A custom format can keep large totals short. This format shows $1.2M, $45.3K, or $812, depending on the size of the value:
[>=1000000]$0.0,,"M";[>=1000]$0.0,"K";$0Each comma after the digit placeholders divides the displayed number by 1,000. The cell value itself does not change. Use a fixed format such as $#,##0 instead if viewers will compare numbers exactly.
For percentages, store a ratio and apply 0.0%. Do not multiply by 100 in the formula. A formula that returns 12.5 with a percent format displays 1250.0%.
Add conditional formatting for signals
Use conditional formatting where a color tells the viewer what to do. Select the KPI cell, then choose Format > Conditional formatting. To turn the revenue cell red when it falls below a target held in cell B5, pick Custom formula is and enter:
=$B$4<$B$5Set the fill to a light red and the text to dark red. Add a second rule for the opposite case, using =$B$4>=$B$5 with a light green fill. Because B4 uses SUBTOTAL, the color changes when a slicer changes the visible rows.
A few rules keep the result readable:
- Limit the dashboard to two or three signal colors, and use each color for one meaning.
- Use a light fill with dark text. Saturated fills reduce contrast.
- Do not rely on color alone. Some viewers cannot tell red from green, so add a label or a symbol such as an arrow in the cell next to the value.
A target is a number you chose, so label it. Put Target in A5 and the value in B5, so the comparison is visible.
Style the charts
Open a chart, then choose Customize in the chart editor.
- Title: Write what the chart shows and its measure, for example
Revenue by region. Titles such asChart 1do not help. - Legend: Remove it when the chart has one series. For several series, put the legend at the top or right and check that the colors are distinguishable.
- Axes: Under Horizontal axis and Vertical axis, set the number format so it matches the KPIs. A revenue axis showing
1000000next to a KPI showing$1.0Mlooks inconsistent. - Gridlines: Use Major gridlines or none, and avoid minor gridlines.
- Data labels: Turn on Data labels for bar charts with few categories. Turn them off for lines with many points.
- Colors: Use one color for single-series charts. Under Chart style, set the same font and background across charts.
- Chart style: Check Plot null values and axis minimums. Bar charts should start at zero, because a truncated axis exaggerates differences.
Sort the pivot table behind a bar chart by the value column, descending, so the bars appear in rank order. The chart follows the pivot table's order.
Style the slicers
A slicer is a control, so it must say what it filters. Select the slicer, open its three-dot menu, and choose Edit slicer. On the Customize tab you can set:
- Title: Use the column name or a plainer label, such as
Region. By default, the slicer shows the column name. - Font size, format, and text color: Match the dashboard's text.
- Background color: Use a light gray or tint that separates the control from the page.
Line up slicers on one row, with the same height and an even gap between them. Keep the order consistent with how you want viewers to filter, for example date first, then region, then category.
Tidy the other tabs
Viewers should not see the working tabs first, but they should remain available to you.
- Rename tabs to describe their role:
Dashboard,Summaries,Data. - Move
Dashboardto the first position by dragging its tab. - Hide the working tabs: right-click the tab and choose Hide sheet. A hidden tab's pivot tables and formulas keep working, and the charts and SUBTOTAL formulas still read from it.
- Format the pivot tables in the Summaries tab with the same number formats as the dashboard. Chart labels often come from the pivot table's formats.
- Leave enough empty rows and columns around each pivot table. A pivot table that cannot expand because other cells are in its way shows an overflow error and stops updating.
Hiding a tab is not a security measure. An editor can unhide it, and a viewer with access to the file can usually reach its data. Chapter 12 covers sharing.
Check the result
Run these checks after formatting:
- Set each slicer to a single value and confirm that the KPIs, the colors, and the charts change.
- Clear the slicers, then pick a combination that returns no rows. The KPI cells should show
0, not an error, and the charts should show an empty state, not break the layout. - View the dashboard at 100% browser zoom on a laptop-sized window. Everything important should fit without horizontal scrolling.
- Look at the sheet in the viewer's mode. Use Share > View as, or open the file from a second account, to check what a viewer sees.
Common mistakes
| Mistake | Effect | Fix |
|---|---|---|
| Formatting numbers as text strings with `TEXT()` or `&` | Charts and rules cannot read them | Keep values numeric and apply a number format |
| Hiding rows in the Data tab to tidy it | SUBTOTAL 109 skips those rows, so totals shrink | Leave Data rows visible, and hide the tab instead |
| Placing charts over a pivot table's expansion area | Pivot overflow or hidden results | Keep pivot tables on their own tab |
| Many unrelated colors | Viewers cannot tell which color matters | Use one base color and one or two signal colors |
| Different number formats for the same measure | The same figure looks different in two places | Pick one format per measure and reuse it |
Exercise
A KPI cell holds =SUBTOTAL(109, Data!F2:F1000) and shows 1200000. You want it to show $1.2M, and you want its fill to turn red when it falls below a target in B5. Which settings do you use, and does the formatting change what a chart that reads this cell plots?
Show answer
Apply the custom number format [>=1000000]$0.0,,"M";[>=1000]$0.0,"K";$0 to the cell. Add a conditional formatting rule with the custom formula =$B$4<$B$5 (adjust B4 to the KPI cell's address) and a red fill. Neither change alters the stored value. A chart reading the cell still plots 1200000, and the rule re-evaluates when a slicer changes the visible rows.
Exercise
Why should you hide the Summaries and Data tabs instead of hiding rows inside Data, and why is a hidden tab not a way to keep the data private?
Show answer
Hiding a tab does not change any formula result. Hiding rows in Data makes SUBTOTAL with code 109 skip them, so the KPI totals shrink. A hidden tab can still be unhidden by anyone with edit access, and a viewer with access to the file can usually reach its data, so use sharing permissions to control access.