PC Review


Reply
Thread Tools Rate Thread

Avg % above 0%

 
 
Wendy
Guest
Posts: n/a
 
      20th Apr 2010
How can I get the average percentage of a collumn of percentages without it
including any 0%. e.g. A1=0% A2=100%, A3=70% if it averaged the 3 cells it
would be 57% but if it only averaged A2:A3 it would be 85%. I may have
several cells in the collumn which is showing 0% so how do I average just
those above 0%. Can you use Avg if is there such a formula?

Basically I have a collumn of attendance data which I am trying to get the
avg of. sometimes it will be 0% because its a non expected attendance and
sometimes it will be because they did not attend though they should have
done. hope this make sence. So in essence sometimes I want to add the 0% in
the avg and sometimes I don't how do I diferentiate between when I do and
when I don't
--
Wendy Fillingham
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      20th Apr 2010
Hi,

Here's 2 ways, first an ARRAY formula

=AVERAGE(IF(A1:A100<>0,A1:A100))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

or a non array solution

=SUM(A1:A100)/(COUNTIF(A1:A100,">0")+COUNTIF(A1:A100,"<0"))

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Wendy" wrote:

> How can I get the average percentage of a collumn of percentages without it
> including any 0%. e.g. A1=0% A2=100%, A3=70% if it averaged the 3 cells it
> would be 57% but if it only averaged A2:A3 it would be 85%. I may have
> several cells in the collumn which is showing 0% so how do I average just
> those above 0%. Can you use Avg if is there such a formula?
>
> Basically I have a collumn of attendance data which I am trying to get the
> avg of. sometimes it will be 0% because its a non expected attendance and
> sometimes it will be because they did not attend though they should have
> done. hope this make sence. So in essence sometimes I want to add the 0% in
> the avg and sometimes I don't how do I diferentiate between when I do and
> when I don't
> --
> Wendy Fillingham

 
Reply With Quote
 
Bernard Liengme
Guest
Posts: n/a
 
      20th Apr 2010
Wendy,
In the event you have Excel 2007
=AVERAGEIF(A1:A10,">0")
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Wendy" <(E-Mail Removed)> wrote in message
news:A0103ACC-A91A-484B-8E3F-(E-Mail Removed)...
> How can I get the average percentage of a collumn of percentages without
> it
> including any 0%. e.g. A1=0% A2=100%, A3=70% if it averaged the 3 cells
> it
> would be 57% but if it only averaged A2:A3 it would be 85%. I may have
> several cells in the collumn which is showing 0% so how do I average just
> those above 0%. Can you use Avg if is there such a formula?
>
> Basically I have a collumn of attendance data which I am trying to get
> the
> avg of. sometimes it will be 0% because its a non expected attendance and
> sometimes it will be because they did not attend though they should have
> done. hope this make sence. So in essence sometimes I want to add the 0%
> in
> the avg and sometimes I don't how do I diferentiate between when I do and
> when I don't
> --
> Wendy Fillingham


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:28 AM.