Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Calculate average and not include zero values

I have a final issue with my measurements sheet. I have several columns
designed to calculate how long it has taken people to do something ie, lines
minutes lines per hr
I then have a list of people and at the bottom of this list it then
calculates the average no of lines per hr, trouble is it includes any zeroes
also in the list, so instead of giving average of say the 2 people who did
job it also includes 0 from the other 9?
The formula i have at the moment is
=SUM(IF(ISNUMBER(E5:E13),E5:E13,0))/COUNT(E5:E13) originally this was due to
#DIV/0 issues which have been sorted. if i just use =AVERAGE(E5:E13) i just
get the same answer now,
can anyone help with my problem please,
Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 320
Default Calculate average and not include zero values

=SUMIF(E5:E13,"0")/COUNTIF(E5:E13,"0")
Bob Umlas
Excel MVP


"k1ngy" wrote:

I have a final issue with my measurements sheet. I have several columns
designed to calculate how long it has taken people to do something ie, lines
minutes lines per hr
I then have a list of people and at the bottom of this list it then
calculates the average no of lines per hr, trouble is it includes any zeroes
also in the list, so instead of giving average of say the 2 people who did
job it also includes 0 from the other 9?
The formula i have at the moment is
=SUM(IF(ISNUMBER(E5:E13),E5:E13,0))/COUNT(E5:E13) originally this was due to
#DIV/0 issues which have been sorted. if i just use =AVERAGE(E5:E13) i just
get the same answer now,
can anyone help with my problem please,
Thanks,

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Calculate average and not include zero values

K1ngy
Just thinking off the top of my head.....you could use the CountIF and set
the criteria to be greater than 0, this will then just count the values above
and ingonre all the zero values

CountIF(E5:E13,"0")....have checked this out with a column of 5 numers
three were 1s, two were 0 and it's worked...

Hope this helps

Regards
Steve

"k1ngy" wrote:

I have a final issue with my measurements sheet. I have several columns
designed to calculate how long it has taken people to do something ie, lines
minutes lines per hr
I then have a list of people and at the bottom of this list it then
calculates the average no of lines per hr, trouble is it includes any zeroes
also in the list, so instead of giving average of say the 2 people who did
job it also includes 0 from the other 9?
The formula i have at the moment is
=SUM(IF(ISNUMBER(E5:E13),E5:E13,0))/COUNT(E5:E13) originally this was due to
#DIV/0 issues which have been sorted. if i just use =AVERAGE(E5:E13) i just
get the same answer now,
can anyone help with my problem please,
Thanks,


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Calculate average and not include zero values

=AVERAGE(IF(E5:E130,E5:E13))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"k1ngy" wrote in message
...
I have a final issue with my measurements sheet. I have several columns
designed to calculate how long it has taken people to do something ie,
lines
minutes lines per hr
I then have a list of people and at the bottom of this list it then
calculates the average no of lines per hr, trouble is it includes any
zeroes
also in the list, so instead of giving average of say the 2 people who did
job it also includes 0 from the other 9?
The formula i have at the moment is
=SUM(IF(ISNUMBER(E5:E13),E5:E13,0))/COUNT(E5:E13) originally this was due
to
#DIV/0 issues which have been sorted. if i just use =AVERAGE(E5:E13) i
just
get the same answer now,
can anyone help with my problem please,
Thanks,



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Calculate average and not include zero values

Hi thats it thanks,
I better get some brownie points from work for this,
Steve.


"Bob Umlas, Excel MVP" wrote:

=SUMIF(E5:E13,"0")/COUNTIF(E5:E13,"0")
Bob Umlas
Excel MVP


"k1ngy" wrote:

I have a final issue with my measurements sheet. I have several columns
designed to calculate how long it has taken people to do something ie, lines
minutes lines per hr
I then have a list of people and at the bottom of this list it then
calculates the average no of lines per hr, trouble is it includes any zeroes
also in the list, so instead of giving average of say the 2 people who did
job it also includes 0 from the other 9?
The formula i have at the moment is
=SUM(IF(ISNUMBER(E5:E13),E5:E13,0))/COUNT(E5:E13) originally this was due to
#DIV/0 issues which have been sorted. if i just use =AVERAGE(E5:E13) i just
get the same answer now,
can anyone help with my problem please,
Thanks,



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Calculate average and not include zero values

Glad to have been of assistance...it just bugs the pants off you when you
can't solve the little bits

Regards
Again
Steve
(UK)



"k1ngy" wrote:

Hi thats it thanks,
I better get some brownie points from work for this,
Steve.


"Bob Umlas, Excel MVP" wrote:

=SUMIF(E5:E13,"0")/COUNTIF(E5:E13,"0")
Bob Umlas
Excel MVP


"k1ngy" wrote:

I have a final issue with my measurements sheet. I have several columns
designed to calculate how long it has taken people to do something ie, lines
minutes lines per hr
I then have a list of people and at the bottom of this list it then
calculates the average no of lines per hr, trouble is it includes any zeroes
also in the list, so instead of giving average of say the 2 people who did
job it also includes 0 from the other 9?
The formula i have at the moment is
=SUM(IF(ISNUMBER(E5:E13),E5:E13,0))/COUNT(E5:E13) originally this was due to
#DIV/0 issues which have been sorted. if i just use =AVERAGE(E5:E13) i just
get the same answer now,
can anyone help with my problem please,
Thanks,

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't include errors in average Josh Kraemer Excel Worksheet Functions 2 February 1st 07 11:52 PM
How do I include average costs in my charts? Annette Charts and Charting in Excel 1 August 21st 06 12:12 PM
Average Function (include Blank Cells and Zeros) [email protected] Excel Discussion (Misc queries) 17 June 27th 06 01:33 PM
Looking-up Columns w/calc'd Values ONLY to Calculate Average sony654 Excel Worksheet Functions 5 April 21st 06 06:21 AM
in a pivot table, can the average include blank entries? Aaron Excel Discussion (Misc queries) 0 March 3rd 06 07:14 PM


All times are GMT +1. The time now is 08:30 PM.

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

About Us

"It's about Microsoft Excel"