Average greater than 0

G

Guest

I'm looking for a formula to find the average of numbers in a column that are
greater than 0. For example, in column A, there are reaction times. In column
B, there are final times. Say cell A1 is 3:25 AM and cell B1 is 3:45 AM. In
cell C1, I have the formula =B1-A1 to give me the amount of time in between
B1 and A1. The formula is copied down the column giving the cells the value
of 0. I need to find the average final times but without the 0 values. Any
help would be greatly appreciated. Thank you
 
B

Bob Phillips

=AVERAGE(IF(C1:C100>0,C1:C100))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
G

Guest

Thank you Bob. That works great.

Bob Phillips said:
=AVERAGE(IF(C1:C100>0,C1:C100))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
G

Guest

For a non-array formula, you can use..........

=SUMIF(C:C,">0")/COUNTIF(C:C,">0")


Vaya con Dios,
Chuck, CABGx3
 

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

Similar Threads

help with formula 1
Excel Need Countifs Formula Help 0
Average using Greater Than - Less Than 3
need formula returning a blank cell 4
Average If 3
Help with formula 4
Average with multiple conditions 4
EXCEL FORMULA 2

Top