FormulaCraft

How to add data bars with conditional formatting in Excel and Google Sheets

Excel & Google Sheets
=A2

Verified example

Computed by a real spreadsheet engine on the sample data below.

SalesRevenue
2001500
4003000
3002500
5004000

=A2200

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Select the range of cells you want to format with data bars.
  2. 2Go to the Home tab and click on Conditional Formatting.
  3. 3Choose Data Bars from the dropdown menu.
  4. 4Select a style for the data bars or customize the settings as needed.
  5. 5Click OK to apply the data bars.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Can I change the color of the data bars?

Yes, you can customize the color of data bars by selecting the format rule and adjusting the color settings.

Do data bars work with negative numbers?

Yes, data bars can handle negative numbers, but you may need to adjust the minimum and maximum values in the settings for accurate representation.

How do I remove data bars once they are applied?

To remove data bars, select the formatted cells, go to Conditional Formatting, and choose Clear Rules.

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: