Get average of non-zero cells

shaju

Board Regular
Joined
Jul 12, 2004
Messages
80
Office Version
  1. 2010
Platform
  1. Windows
Hi,
I have 6 cells into which any number (including zero) can be entered. What I want is the average of these 6 cells where the entered value is >0.
ie, if the values entered are - 38,40,0,0,0,0 - into each cells, then the average must be 39, which is the average of non-zero cells. How can this problem addressed.?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
23
0
27find the average of the non zero numbers
0
0
025
25
0formula
0=SUM(A1:A10)/COUNTIF(A1:A10,"<>0")
0

<colgroup><col width="64" span="9" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0

<tbody>
</tbody>
A
B
1
38​
2
40​
3
0​
4
0​
5
0​
6
7
8
39​
average

<tbody>
</tbody>

a8=AVERAGEIF(A1:A5,">0",A1:A5)
 
Last edited:
Upvote 0
Thanks A Lot dear oldbrewer and MARZIOTULLIO for the quick response. It helped me a lot.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,847
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top