close

In Column D I have about 100 Cells filled with numbers. Some are greater to
or equal to zero, some are less than zero. I'm wondering if there are
separate formulas for each of the following:

1) Average of all data greater than or equal to 0.
2) Average of all data less than 0.
3) Count of data greater than or equal to 0.
4) Count of all data less than 0.

I can do this with auto filter, but that is time consuming. Any formulas?
Thanks very much.

Try something like this:

With a list of values in A1:A100, with the col heading in A1

C1: Avg gt;=0
D1: =SUMIF(A2:A100,quot;gt;=0quot;,A2:A100)/COUNTIF(A2:A100,quot;gt;=0quot;)
or =AVERAGE(IF(A2:A100gt;=0,A2:A100)) confirmed with [Ctrl][Shift][Enter]

C2: Avglt;0
D2: =SUMIF(A2:A100,quot;lt;0quot;,A2:A100)/COUNTIF(A2:A100,quot;lt;0quot;)
or =AVERAGE(IF(A2:A100lt;0,A2:A100)) confirmed with [Ctrl][Shift][Enter]

C3: Cntgt;=0
D3: =COUNTIF(A2:A100,quot;gt;=0quot;)

C4: Cntlt;0
D4: =COUNTIF(A2:A100,quot;lt;0quot;)Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP-Proquot;SteveCquot; wrote:

gt; In Column D I have about 100 Cells filled with numbers. Some are greater to
gt; or equal to zero, some are less than zero. I'm wondering if there are
gt; separate formulas for each of the following:
gt;
gt; 1) Average of all data greater than or equal to 0.
gt; 2) Average of all data less than 0.
gt; 3) Count of data greater than or equal to 0.
gt; 4) Count of all data less than 0.
gt;
gt; I can do this with auto filter, but that is time consuming. Any formulas?
gt; Thanks very much.

Works great! Thanks very much.

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()