# 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

Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,168,162
Messages
5,857,726
Members
431,893
Latest member

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