Home and Learn: Microsoft Excel Course
You can format the cells on your spreadsheet so that they have bars in them, or even set up a range of numbers to have a colour scale. You can do all that with Conditional Formatting.
In the image below, we've formatted a set of sales figures so that the cells contain data bars:
Create a new spreadsheet. In A1 enter the text heading January. Widen the A column and then enter any numbers you like in cells A2 to A7:
Now select the cells A2 to A7. From the Home ribbon at the top of Excel, locate the Styles panel and select the Conditional Formatting item. From the menu, select Data Bars. You'll then see some formatting options appear:
You can select a gradient fill for your bars, or a solid fill. Click on one of the Fills to see how it looks on your spreadsheet.
If you click on More Rules, you'll see the following dialogue box appear:
Here, you can select from a wider range of colours by clicking on the Fill dropdown box at the bottom, under Bar Appearance:
The Fill dropdown says Solid Fill. Click this dropdown and you can change it to Gradient Fill:
In the image above, green will be mixed with white to create a gradient colour. (You can't change the white as a gradient colour.)
To get a border colour for your bars, select Solid Border from the Border dropdown list:
Once you've selected Solid Border, click the colour square to the right of the dropdown. Select a new colour:
Click OK on the dialogue box to see your new formatting applied:
If you have negative values in a cell, you'll see bars to the left and right of a zero point. In the image below, we have some values that are negative and positive:
When we add Data Bars conditional formatting, the cell will look like this:
In the next part, you'll see how colour scales can be applied to Excel cells.
<--Back to the Excel Contents Page
Email us: enquiry at homeandlearn.co.uk