find an average from a range, utilizing all data > 0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a row of various #s and I would like to take the average of those
numbers only if they are greater than 0, if they are less than or equal to 0
I would like to omit them.

How can create a formula to reflect this?

Thanks,
CT
 
Hi!

Try one of these:

=SUMIF(A1:G1,">0",A1:G1)/COUNTIF(A1:G1,">0")

This one is an array and must be entered using the key combo of
CTRL,SHIFT,ENTER:

=AVERAGE(IF(A1:G1>0,A1:G1))

Biff
 
Try something like this:
=SUMIF(B1:H1,">0")/COUNTIF(B1:H1,">0")

Does that help?
 
Actually, the first formula can be written like:

=SUMIF(A1:G1,">0")/COUNTIF(A1:G1,">0")

Biff
 
Hi,

You may try the following array formula (Ctrl+Shift+Enter)

=average(if((range>0),range))

Regards,

Ashish Mathur
 

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

Back
Top