Select a cell or a range.
Click the Home tab.
Click the Conditional Formatting button. Point to Data Bars.
Click the colored data bar: Blue, Green, Red, Orange, Light Blue, or Purple.
To create a custom data bar, click More Rules
Specify the options. Then click OK.
Check the result.