Average to not include "0" or blanks cells

gr8trthanu

Board Regular
Joined
Nov 14, 2008
Messages
103
Good Morning,
I have data in cells C4,I4,O4,U4,AA4 that I require to find the average of and display in AL4.

I do not want "0" or blank cells to be included in the average.

I tried using the following formula but getting an error because the cells are not in a range

*****CODE******
=AVERAGEIF(C4:AA413,"<>0")

Is there another method to this?

Thanks in advance.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Try this array formula:
=AVERAGE(IF(c4:AA413<>0,c4:AA413,""))
confirm with control+shift+enter.
 
Upvote 0
Thank you for the response - the formula did not work.

Would this formula also include other cells that fall between C4 and AA413.

I only want the averages of the following cells - C4,I4,O4,U4,AA4
 
Upvote 0
Try this: I did not come up with this formula though. It will ignore zeros. Excel will consider a blank as a zero in this case.
=SUM(C4,I4,O4,U4,AA4)/INDEX(FREQUENCY((C4,I4,O4,U4,AA4),0),2)
 
Upvote 0

Forum statistics

Threads
1,215,493
Messages
6,125,128
Members
449,206
Latest member
burgsrus

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