A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Avg % above 0%



 
 
Thread Tools Display Modes
  #1  
Old April 20th, 2010, 03:11 PM posted to microsoft.public.excel.worksheet.functions
Wendy
external usenet poster
 
Posts: 255
Default Avg % above 0%

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
  #2  
Old April 20th, 2010, 03:18 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default Avg % above 0%

Hi,

Here's 2 ways, first an ARRAY formula

=AVERAGE(IF(A1:A1000,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

  #3  
Old April 20th, 2010, 03:30 PM posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
external usenet poster
 
Posts: 516
Default Avg % above 0%

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" wrote in message
...
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


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:27 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.