Skip to main content

Conditional Formatting in Excel - Averages

 - Have a look again at the student scores spreadsheet from an earlier tutorial:
An Excel spreadsheet showing student averages
If you haven't got this spreadsheet, download it using the link below 

When you open up the spreadsheet above in Excel, click File > Save As and save it with a different file name, as you'll be needing another copy later.
What we're going to do is some conditional formatting based on Average scores. We'll have one colour for those scores that are above average and another colour for those that are below average.
When you're done, the spreadsheet will look something like this:
The student averages spreadsheet with Conditional Formatting applied
With the Conditional Formatting applied, you can easily see that Mary achieved above average scores in all subjects (red). You can also see that poor Mark, meanwhile, has lower than average scores in all subjects (green). This information is not readily apparent without the Conditional Formatting. So how is it done?
Start by selecting the scores from cells B2 to I9:
With the scores selected, locate the Styles panel on the Home ribbon at the top of Excel. From the Styles panel, click on Conditional Formatting, then select Top/Bottom Rules > Above Average:
The Conditional Formatting menu
You should then see the following dialogue box appear:
Format cells dialogue box
The default colour for the cells is Light Red Fill with Dark Red Text. If you want another colour, click the arrow on the dropdown box to see more options:
Cell fill options
If you're still not happy with the colour range, select the Custom Format option at the bottom. You can then set up a custom colour like you did in a previous lesson.
When you click OK on the dialogue box, your spreadsheet should look like this:
Red colour selected for the formatting
With the scores still selected, go to Home > Styles > Conditional Formatting again. This time from the menu, select Top/Bottom Rules > Below Average:
Conditional formatting menu - Below Average
When you get the dialogue box up, select a different colour for the Below Average scores:
Format cells dialogue box - below average
For the Below Average scores, we've gone for a Green Fill with Dark Green Text.
Click OK to apply the formatting. Your spreadsheet will then look like ours:
The student averages spreadsheet with Conditional Formatting applied

Exercise

Open up a new copy of the Student Scores spreadsheet, or just Undo the formatting you already have by clicking the Conditional Formatting item on the Styles panel. From the menu this time, select Clear Rules, and then clicking on one of the options:
Conditional formatting menu - clear rules
Now set up a new Top/Bottom Rule. Colour only the top ten scores. Using a different colour, highlight the bottom ten scores. Your spreadsheet should look something like this, when you're done:
Conditional formatting with Top/Bottom rules applied
(You should notice the Excel colours 11 scores rather than 10. It does this because some of the scores are the same.)

In the next lesson, you'll see how to format cells so that they have bars in them.

Comments

Popular posts from this blog

Beginners PHP  -This is a complete and free PHP programming course for beginners. It's assumed that you already have some HTML skills. But you don't need to be a guru, by any means. If you need a refresher on HTML, then click the link for the Web Design course on the left of this page. Everything you need to get started with this PHP course is set out in section one below. Good luck! Home Page > PHP Section One - An Introduction to PHP 1. What is PHP and Why do I need it? 2. What you need to get started 3. Installing and testing Wampserver 4. Troubleshooting > PHP Two - Getting Started With Variables 1. What is a Variable? 2. Putting text into variables 3. Variables - some practice 4. More variable practice 5. Joining direct text and variable data 6. Adding up in PHP 7. Subtraction 8. Multiplication 9. Division 10. Floating point numbers > PHP Three - Conditional Logic 1. If Statements 2. Using If Statements 3....
Visual Basic .NET Contents Page   -This computer course is an introduction to Visual Basic.NET programming for beginners. This course assumes that you have no programming experience whatsoever. It's a lot easier than you think, and can be a very rewarding hobby! You don't need to buy any software for this course! You can use the new FREE Visual Basic Express Edition from Microsoft. To see which version you need, click below: Getting the free Visual Studio Express - Which version do I need? > VB .NET One - Getting Started   1. Getting started with VB.NET 2. Visual Basic .NET Forms 3. Adding Controls using the Toolbox Home Page 4. Adding a Textbox to the Form 5. Visual Basic .NET and Properties 6. The Text Property 7. Adding a splash of colour 8. Saving your work 9. Create a New Project >   VB .NET Two - Write your first .NET code   1. What is a Variable? 2. Add a coding button to the Form 3. Writing y...
The Excel SumIF Function  - Another useful Excel function is SumIF. This function is like CountIf, except it adds one more argument: SUMIF( range ,  criteria ,  sum_range ) Range and criteria are the same as with  CountIF  - the range of cells to search, and what you want Excel to look for. The Sum_Range is like range, but it searches a new range of cells. To clarify all that, here's what we'll use SumIF for. (Start a new spreadsheet for this.) Five people have ordered goods from us. Some have paid us, but some haven't. The five people are Elisa, Kelly, Steven, Euan, and Holly. We'll use SumIF to calculate how much in total has been paid to us, and how much is still owed. So in Column A, enter the names: In Column B enter how much each person owes: In Column C, enter TRUE or FALSE values. TRUE means they have paid up, and FALSE means they haven't: Add two more labels: Total Paid, and Still Owed. Your spreadsheet should look something li...