Average Function

C

carl

I would like to take an average but would like to
exclude "zero" values and blank cells. Is there a way to
do this ?

Thank you in advance
 
L

Leo Heuser

Carl

One way:

=AVERAGE(IF(A2:A100<>0,A2:A100))

This is an array formula and it must be entered with
<Shift><Ctrl><Enter>, also if edited later.
 
D

Dave R.

=AVERAGE(IF(D3:D6<>0,D3:D6))

enter this with CTRL SHIFT ENTER, not just enter (which will give you
#VALUE!)

Average wont count blank cells anyways so it just excludes 0s.
 
F

Frank Kabel

Hi
try the following array formula (entered with CTRL+SHIFT+ENTER):
=AVERAGE(IF(A1:A100<>0,A1:A100))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top