Table of Contents
Excel data bars put a horizontal bar behind each number so you can compare values without leaving the worksheet. They update when the numbers change. Use them for values in the same unit, such as budget totals or completion percentages. For changes over time, a chart or sparkline usually tells the story more clearly.
Add data bars to a numeric range
- Select the numeric cells, excluding labels and totals unless you want them included in the comparison.
- Choose Home > Conditional Formatting > Data Bars.
- Pick a solid or gradient fill. Keep the numbers visible when readers need exact values.

Make comparisons use the same scale
Open Conditional Formatting > Manage Rules, choose the rule and select Edit Rule. Check Applies to and make sure it covers the intended cells. Excel for the web may show the rule in a pane.



Two ranges with separate automatic rules can make different numbers look the same length. For example, 45 in a range that tops out at 50 can look longer than 60 in a range that tops out at 100. To compare both columns on one scale, apply one rule to both or set identical numeric minimums and maximums in their rules. For percentages stored as decimals, use 0 and 1 for 0% and 100%.

Handle negative numbers and missing values
Use Negative Value and Axis to make negative values extend left of the zero line and distinguish them by color where supported. Keep missing cells blank. Enter a zero only when the measured value really is zero. If a bar fails to appear, check whether the cell contains a number stored as text or an error.
See Microsoft’s rule options and the Excel conditional formatting guide. To plot a trend instead, try sparklines in Quick Analysis.
Reader Comments 0
Sign in with email or Google to join the discussion.