Skip to main content

The Average Function in Excel


- In section 6, we're going to look at some slightly more complex formulas than the simple operators. In fact the formulas in this section are not really formulas at all. They are Functions. Don't be put off by the name. A Function is just something to help you calculate. You've already met the SUM() function. The ones in this section are just some more of the functions built in to Excel. We will explore averages, date and time formulas, and one or two financial formulas. It might get a bit tricky, so hold on to your hats!

Averages

We'll make a start with averages. First, what is in an average? In maths, an average is a number derived by dividing how many there are in a list by the list total. For example, suppose a list of student scores in an exam was this: 9, 7, 6, 7, 8, 4, 3, 9. We only have eight scores. To get the average score we first need to get the total. So add up the numbers in the list: 9 + 7 + 6 + 7 + 8 + 4 + 3 + 9 = 53. Next divide by how many there are in the list: 8. So to get the average score the sum is 53 divided by 8. The answer is 6.625. Which means that the average score in the exam was 6.625.
Once we have an average figure we can see at a glance which students are performing above average, and which below. Clearly, the poor student who scored only 3 needs some extra homework!
So now that you know what an average is, how do you calculate averages with Excel? Well, start a new spreadsheet and enter those exams scores in cells A1 to A8. Your spreadsheet will look like the one below:
A list of Numbers for the Average Function
  • Next, click in cell A9
  • We now need to insert the average Function
There are a couple of ways to insert a function.
Method 1
Click on the equals sign next to the formula bar. This is the Edit formula button, and can be seen in the picture below:
Click Edit Formula
When you click the equals button, you'll see a palette appear just under the Name box and Formula bar. It will look like the one below:
the formula palette
There are one or two things to notice about the Formula palette. First look in cell A9. There is an equals sign in it. Excel has entered this because all formulas and functions must start with this symbol, and it knows that it's easy to forget to put an equals sign in. So it does it for you.
The next thing to notice is that the Name box says "Sum". There is a black down-pointing arrow to the right of "Sum". Clicking on the arrow will reveal a list of Functions.
A list of Functions
The one we want is there. So click on Average with your left mouse button. The palette changes to this rather complicated one:
The Average Formula
Excel does a few things here: shows you what Function it is putting in the Formula bar at the top (=Average(A1:A8); gives you a list of the values in your cells (in brackets after the Number1 text area); gives you the result (at the bottom "Formula result = ").
But don't worry if you're scratching your head over that dialogue box. Just click the OK button at the bottom. The palette closes, and Excel inserts the result of the average in cell A9.

Method 2
The second way to enter a Function is this:
  • Click inside cell A9
  • From the menu bar at the top, click on Insert
  • From the drop down menu, click on Function
  • The following dialogue box appears:
The Paste Function dialogue box
This dialogue box is a listing of all the Functions built in to Excel. The Average function is under Statistical.
  • In the Function category section, click on Statistical with your left mouse button
  • A list of all the Statistical functions appears on the right hand side
  • Locate Average and click it with your left mouse button
  • Click the OK button at the bottom
  • The function palette appears, the same one from Method 1
  • Click the OK button and Excel will insert the answer to your Average Function in cell A9
But what if Excel has the wrong cell references for your Average? Is there any way you can edit the Functions? Yes, there is. Try this:
Click in cell B9 of your spreadsheet. Use one of the methods outlined to bring up the formula palette. Your spreadsheet will now look like this:
This time the formula bar just reads =Average(A9). You can edit the function by clicking inside the formula bar at the top. Change A9 to A1:A8 and the click the OK button.
Of course, you don't need to use the formula palette at all. You could just enter the Function directly, just like you did with the Sum() function, or any other formula: click on the cell where you want the answer to appear. Then click inside the formula bar. Enter =Average(A1:A9) and press the return key on your keyboard.
The advantage of using the formula palette is that Excel enters the correct function for you. It's very easy to make a typing error if you do it yourself, and then get an enigmatic error message for your troubles.
OK, time for an exercise.

Exercise

A dart's player is trying to work out his three dart average, and his one dart average. Help him out. His scores for a single game were these:
60
55
24
95
100
60
86
21
So his score of 60 was achieved by throwing three darts. Likewise, a total of 55 was achieved with three darts. In fact, every score on the list is a the result of three darts. Your task is to work out his three dart average.
Once you have worked out his three dart average, let him know what his average score was for one dart. (You don't need the Average Function here. What you are working out is how many darts he threw in total. Then divide the grand total for all his darts by this number. An easier way to get the answer is to divide the Average by . . . ?)

In the next part, we'll take a look at Date and Time functions in Excel.

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...