Average Issues

oconnodale

New Member
Joined
Jun 5, 2013
Messages
2
Hi,
I am trying to get an average of the values of every second cell in a range along a single row.
Some of the cells in the range will be blank and I don't want those cells included in the average total or divisor.
However some of the cells will have 0 in them. I do want these cells included in the average total and divisor.
So far I am using the formula:
=AVERAGE(IF(MOD(COLUMN(E15:M15)-COLUMN(E15),2)=0,IF(E15:M15>0,E15:M15))) with a CTRL+SHIFT+ENTER.
Unfortunately this does not work the way I want it to. If one of the cells that is relevant to this formula has a 0 in it the formula still does not include it meaning the average divisor is one short.
Is there a way around this so that any cell with value 0 in it is included in the calculation?
Appreciate your help.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi,
I am trying to get an average of the values of every second cell in a range along a single row.
Some of the cells in the range will be blank and I don't want those cells included in the average total or divisor.
However some of the cells will have 0 in them. I do want these cells included in the average total and divisor.
So far I am using the formula:
=AVERAGE(IF(MOD(COLUMN(E15:M15)-COLUMN(E15),2)=0,IF(E15:M15>0,E15:M15))) with a CTRL+SHIFT+ENTER.
Unfortunately this does not work the way I want it to. If one of the cells that is relevant to this formula has a 0 in it the formula still does not include it meaning the average divisor is one short.
Is there a way around this so that any cell with value 0 in it is included in the calculation?
Appreciate your help.

Control+shift+enter:

=AVERAGE(IF(MOD(COLUMN(E15:M15)-COLUMN(E15),2)=0,IF(ISNUMBER(E15:M15),E15:M15)))
 
Upvote 0

Forum statistics

Threads
1,226,730
Messages
6,192,705
Members
453,748
Latest member
akhtarf3

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