Average Formula

S

sross002

how do I Calculate the average of numbers not in a contiguous row or column,
excluding cells that have 0?

(The column starts at F5 but I will continuosly add to the f column, so it
doesn't have an ending column.)

It's a simple worksheet calculating my MPG on my car, so I will keep adding
to it.
 
P

pinmaster

Try something like this:

=AVERAGE(IF(F5:F1000>0,F5:F1000))
this is an array formula so enter using Ctrl+Shift+Enter


HTH

Jean-Guy
 
S

sross002

that worked great!!!
The formula reads like this: =AVERAGE(IF(F5:F1000>0,F5:F1000))

How would I go about rounding it two decimal places?
 
B

Bob Phillips

=ROUND(AVERAGE(IF(F5:F1000>0,F5:F1000)),2)

still array-entered.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
Top