Array Average

tlynn

Board Regular
Joined
Aug 28, 2006
Messages
137
Office Version
  1. 365
Platform
  1. Windows
I have been using this formula to average a range without averaging in the zeros:

Code:
{=AVERAGE(IF(A1:A10,A1:A10))}

to do some averaging..obviously..and have recently ran into a problem. When there is nothing yet in the range to average, (all zero's for a month that has not happened yet), then I get a #DIV/0!. Normally this would not be a huge problem using:

Code:
=IF(ISERROR(BLA, BLA),"",(BLA, BLA))

but...this isnt working now either and it states that there is an error with the double quote area of the formula. Is there a different way to do this?

Any help would be appreciated and thanks in advance.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
If all your values are greater than 0, here's another one:

=SUMIF(A1:A10,">0")/MAX(1,COUNTIF(A1:A10,">0"))
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,971
Members
449,059
Latest member
oculus

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