Average

A

an

Hi!

I have:

A B
1 x 100
2 y 0
3 z 200
4
5

I would like average B1:B5 if A1:A5 <> ""
In this case: AVG=150

Thanks in advance.
an
 
R

Roger Govier

Hi

From the result you are showing, you want to exclude 0 values, not nulls.
The average function automatically excludes nulls.
Try
=AVERAGEIF(B1:B3,"<>0")
 
A

an

Ok, RG.

Perfect.
Many thanks.
an

Roger Govier said:
Hi

From the result you are showing, you want to exclude 0 values, not nulls.
The average function automatically excludes nulls.
Try
=AVERAGEIF(B1:B3,"<>0")
 

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