Average Formula

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

Guest

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.
 
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
 
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?
 
=ROUND(AVERAGE(IF(F5:F1000>0,F5:F1000)),2)

still array-entered.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
Back
Top