Finding average ignoring zeros and not in a range

tink

New Member
Joined
Feb 28, 2002
Messages
3
How can you get an average of a group of numbers while ignoring zeros AND the numbers are not in a range. Like a3, a6, a8,a9 etc... How can you do this?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
On 2002-03-02 12:30, tink wrote:
How can you get an average of a group of numbers while ignoring zeros AND the numbers are not in a range. Like a3, a6, a8,a9 etc... How can you do this?

=SUM(A1:A2,A4:A5,A7:A9)/MAX(1,COUNTIF(A1:A2,">0")+COUNTIF(A4:A5,">0")+COUNTIF(A7:A9,">0"))

will compute an average of positive numbers in non-consecutive ranges [ A1:A2,A4:A5,and A7:A9 ]ignoring zeroes in the process.

Aladin
 
Upvote 0

Forum statistics

Threads
1,214,537
Messages
6,120,096
Members
448,944
Latest member
SarahSomethingExcel100

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