Re: Average formula with a difference.
From: Harlan Grove (hrlngrv_at_aol.com)
Date: 06/15/04
- Next message: Harlan Grove: "Re: Counting Parentheses"
- Previous message: Harlan Grove: "Re: IF (AND) functions"
- In reply to: RagDyer: "Re: Average formula with a difference."
- Next in thread: RagDyer: "Re: Average formula with a difference."
- Reply: RagDyer: "Re: Average formula with a difference."
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Jun 2004 23:00:40 GMT
"RagDyer" wrote...
>Point to consider ... shouldn't negative values actually be included in the
>average, as being considered part of an array?
>
>=SUM(A1:A4)/COUNTIF(A1:A4,"<>0")
>
>The problem being, the above doesn't work with a null (empty) cell!
>
>Another point ... some solutions require zero to be included, while others
>do not.
>
>So, the OP makes the rules.
>Problem is, they don't often include *all* stipulations in their requests.
..
If both positives and negatives are valid values in a sample of observed values,
then unless the process producing those values weren't continuous zero would
also have to be a valid value. In other words, including negatives but excluding
zeros would tend to overstate the resulting averages.
As for the denominator, it needs to be
(COUNTIF(C5:C10,"<>0")-COUNTIF(C5:C10,"=")-COUNTIF(C5:C10,"*"))
-- To top-post is human, to bottom-post and snip is sublime.
- Next message: Harlan Grove: "Re: Counting Parentheses"
- Previous message: Harlan Grove: "Re: IF (AND) functions"
- In reply to: RagDyer: "Re: Average formula with a difference."
- Next in thread: RagDyer: "Re: Average formula with a difference."
- Reply: RagDyer: "Re: Average formula with a difference."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|