Average without numbers

E

Ed Davis

How would I get the true Average of cell a10 - j10 if only 4 of the cells
have a number.
Example

A10, B10, f10, all have the number 10 but when I get the average I get 3 as
the average and not 10. It should be 10.
Thanks in advance.
 
T

T. Valko

One way assuming there are no negative numbers:

=SUM(A10:J10)/MAX(1,COUNTIF(A10:J10,">0"))
 
T

T. Valko

But that would be a true average, yes?

Not if you want to exclude 0 for whatever reason.
The OP questioned the average when "only n of the cells have a number"
(where n in {3,4})

Yeah, but then how did they get 3 as the result? Filling the the other cells
with 0 does that. I could be wrong but that's how I "read between the lines"
and got a result of 3.

We'll just have to wait for a response from the OP to find out what's really
going on!
 

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