# Thread: formula for averages (IE - 5.0)

1. ## formula for averages (IE - 5.0)

I am new to the Excel software and I need help with a formula to calculate the average of cell values. How do I write a formula to find the average while omitting empty cells?

2. ## Re: formula for averages (IE - 5.0)

The function AVERAGE() should work. the following is a note from the help file :
<hr>If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.<hr>
You can use =AVERAGE(A1:A10) to find the average of the range A1:A10.

Andrew C

3. ## Re: formula for averages (IE - 5.0)

In addition to Andrew's advice, if you need a weighted average, i.e. a true mean, look into =SUMPRODUCT, used like this (with apologies if my math syntax isn't technically correct):

=SUMPRODUCT(Frequency_Range,Value_Range)/SUM(Frequency_Range)

4. ## Re: formula for averages (IE - 5.0)

If the cells are truly empty, then the Average function should do what you are asking:

<pre>=Average(A1:A10)
</pre>

That should average A1:A10 ignoring empty cells.

If the cells contain formula that look empty, then you will need to do change those formula. For example if the cell contains =B1 and B1 is empty, and the cell is formatted to not display zero, you will need to change the formula to:

<pre>=IF(B1="","",B1)
</pre>

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•