What are data bars in Google Sheets?

Data bars are in-cell horizontal bars driven by conditional formatting. Longer bars mean larger values relative to the range. They give spreadsheet scanners a quick visual ranking without building a separate chart for every column on a KPI table.

When to use it

Use data bars on scorecards, survey averages, regional comparisons, and progress columns where relative size matters more than exact color categories.

When to skip it

Skip data bars when precise thresholds need red-yellow-green rules, when negative values need diverging bars, or when the range mixes unrelated scales. A real chart or color scale may communicate better.

How it works

  1. 1

    Select numeric cells, open Format > Conditional formatting, and choose a Color scale or custom formula bar style depending on your Sheets version options.

  2. 2

    Use conditional formatting rules that apply gradient fills mimicking bars, or pick the data bar preset when available in the formatting sidebar.

  3. 3

    Set min and max for the bar scale so one outlier does not shrink every other bar to invisibility.

  4. 4

    Apply the rule down a consistent column of the same unit (all percents, all dollars) for honest comparison.

  5. 5

    Hide the gradient on header and total rows by scoping the range to data rows only.

  6. 6

    Pair with a number format so the exact value still shows beside the bar for audit-friendly tables.

Examples in Google Sheets

Rep quota attainment

Percent to goal column uses bar formatting so managers spot laggards in a standup without opening a chart tab.

Survey score by question

Average rating column 1 to 5 gets bars; min 1 and max 5 keeps bars comparable across questions.

Inventory days on hand

Bars on Days column highlight SKUs sitting longest; filter view on top bar quartile drives reorder list.

Build this without starting from a blank cell

Use a Better Sheets tool for Data bars, then watch a walkthrough when you want the full pattern.

Better Sheets resources

Common mistakes

  • Mixing currencies and counts in one bar rule, which lies visually even if the math is technically scaled.
  • Letting auto min-max include a typo cell with 999999, crushing all other bars.
  • Applying bars on text that looks numeric, producing blank or misleading fills.
  • Replacing careful conditional formatting thresholds with bars when compliance needs explicit red above limit rules.
  • Forgetting bars do not export to all CSV consumers; keep raw numbers for downstream tools.

Frequently asked questions

Data bars vs sparkline?
Data bars compare peers in one column. Sparklines show trend over time inside a cell.
Negative values in data bars?
Standard bar rules target positive ranges. Use separate formatting or charts for diverging positive-negative views.
Custom bar color?
Edit the conditional formatting rule colors and gradient stops in the sidebar.
Data bars on entire column?
Scope to your table body. Open-ended A:A rules slow huge sheets and bar stray header text.
Data bars and sort?
Sorting by value column works normally. Bars move with their cells.
Clear data bar rules?
Select range, open Conditional formatting, and delete the bar or gradient rule.
Data bars vs progress bars formula?
Formula progress bars using REPT or CHAR give pixel control. Data bars are faster via formatting rules.
Print data bars?
They print and PDF export like cell fill if print settings include background graphics.

Related Tutorials

Watch how Data bars works

Browse more tutorials
Hide Completed Bars - Make Progress Bars with Sparkline: Part 2

Hide Completed Bars - Make Progress Bars with Sparkline: Part 2

Use the IF() formula to hide completed bars and display messages instead...
Ultimate Checklist in Google Sheets

Ultimate Checklist in Google Sheets

how to create and customize checklists using Google Sheets. I show you h...

Related blog posts

Guides that explain Data bars in more depth.

Browse the blog

Related glossary terms

Done reading about Data bars?

Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.

Need this once

Jump to a free tool or a single tutorial for this topic.

Learning Sheets for real

Unlock the full library, generators, and templates with membership.