# Average formula to ignore zeros over several tabs of data (in 1 spreadsheet)

#### michellepike

##### New Member
I have 12 tabs (1 for each month or period) in a spreadsheet and am trying to create a formula to give me an average from tab to tab but to ignore the 0.00%. (So the Period 2 tab needs average Pd1 & 2; the Period 3 tab needs average Pd1,2 & 3; and so and and so forth until Period 12 which needs to average the data from 12 tabs).

This is what I have so far (I am on the Period 3 tab so this is for Pd1, Pd2 and Pd3):

=SUM(('Pd 1-2015'!E78:K78,'Pd 2-2015'!E78:M78,G78:M78)/INDEX(FREQUENCY(('Pd 1-2015'!E78:K78,'Pd 2-2015'!E78:M78,G78:M78),0),2))

This is giving me #VALUE! error.

I've also tried

=AVERAGEIF(('Pd 1-2015'!E78:K78,'Pd 2-2015'!E78:M78,G78:M78),"<>0")

and get the same #VALUE! error.

Thank you so much in advance!

### Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Replies
4
Views
104
Replies
3
Views
69
Replies
4
Views
216
Replies
5
Views
163
Replies
2
Views
404

1,129,383
Messages
5,635,951
Members
416,889
Latest member
dhegs

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

### Which adblocker are you using?

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

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