Turn a column of numbers into a mini bar chart right inside the cells. Data bars fill each cell proportionally — instant visual ranking with no chart object to manage.
The example
Monthly sales with proportional bars.
| A | B | |
|---|---|---|
| 1 | Month | Sales (bar) |
| 2 | Jan | ████████ 80 |
| 3 | Feb | █████ 50 |
| 4 | Mar | ██████████ 100 |
| 5 | Apr | ███ 30 |
The formula
Data bars are a built-in rule — no formula, but you control the scale:
How it works
Data bars draw a gradient or solid fill sized to each value:
- Select the numeric range, then Home → Conditional Formatting → Data Bars and choose a gradient or solid style.
- By default Excel sets the shortest bar to the minimum value and the longest to the maximum — relative to the selection.
- For a fair, fixed scale, open More Rules and set Minimum = Number 0 and Maximum = Number (e.g. 100 or a target). Now bar length means the same thing every time.
- Tick Show Bar Only to hide the numbers and keep just the bars for a clean dashboard look.
Negative values? Data bars handle them — set the axis to “Cell midpoint” so positives go right and negatives go left from the center. Great for variance columns.
Try it: interactive demo
Edit the values; bars scale to the max.
Variations
Fixed scale (fair bars)
Set Min/Max to numbers, not Auto:
Bar only (hide numbers)
Check “Show Bar Only” in the rule.
Percent-of-target scale
Max = a target cell for “% to goal” bars.
Pitfalls & errors
Auto scale can mislead. With Automatic min/max, the same value draws different bar lengths in different ranges. Use a fixed Number scale when comparing across tables.
Bars compete with text. Long numbers can overlap the bar fill; widen the column or use “Show Bar Only” in a helper column.
Not a real chart. Data bars don’t show axes or precise values — they’re for at-a-glance ranking, not exact reading.
Practice workbook
Frequently asked questions
How do I add data bars in Excel?
How do I make the bars use a fixed scale?
Can data bars show negative values?
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