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  

Average



 
 
Thread Tools Display Modes
  #1  
Old August 19th, 2004, 08:52 PM
external usenet poster
 
Posts: n/a
Default Average

I'm trying to average a group of numbers. I do not want
to include the blank or zeros. I used the following to
exclude the zeros but it is still including the blanks.

Thanks for any help you might be able to send me.

=AVERAGE(SUM(K5:K73)/COUNTIF(K5:K73,"0"))
  #2  
Old August 19th, 2004, 09:21 PM
Jason Morin
external usenet poster
 
Posts: n/a
Default

How about:

=SUM(K5:K73)/(COUNT(K5:K73)-COUNTIF(K5:K73,0))

HTH
Jason
Atlanta, GA

-----Original Message-----
I'm trying to average a group of numbers. I do not want
to include the blank or zeros. I used the following to
exclude the zeros but it is still including the blanks.

Thanks for any help you might be able to send me.

=AVERAGE(SUM(K5:K73)/COUNTIF(K5:K73,"0"))
.

  #3  
Old August 19th, 2004, 09:36 PM
Don Guillett
external usenet poster
 
Posts: n/a
Default

use this idea. it must be ARRAY entered with CTRL+SHIFT+ENTER
=AVERAGE(IF(C1:C1000,C1:C100))

--
Don Guillett
SalesAid Software

wrote in message
...
I'm trying to average a group of numbers. I do not want
to include the blank or zeros. I used the following to
exclude the zeros but it is still including the blanks.

Thanks for any help you might be able to send me.

=AVERAGE(SUM(K5:K73)/COUNTIF(K5:K73,"0"))



  #4  
Old August 19th, 2004, 10:21 PM
external usenet poster
 
Posts: n/a
Default

Jason, Thank you very much. It works great.
-----Original Message-----
How about:

=SUM(K5:K73)/(COUNT(K5:K73)-COUNTIF(K5:K73,0))

HTH
Jason
Atlanta, GA

-----Original Message-----
I'm trying to average a group of numbers. I do not

want
to include the blank or zeros. I used the following to
exclude the zeros but it is still including the blanks.

Thanks for any help you might be able to send me.

=AVERAGE(SUM(K5:K73)/COUNTIF(K5:K73,"0"))
.

.

  #5  
Old August 20th, 2004, 04:39 AM
Harlan Grove
external usenet poster
 
Posts: n/a
Default

wrote...
I'm trying to average a group of numbers. I do not want
to include the blank or zeros. I used the following to
exclude the zeros but it is still including the blanks.


AVERAGE always excludes blank cells. COUNTIF using either "0" or "0" will
exclude blank cells and either nonnegative or nonpositive numbers.

If you want to average only positive numbers, you could use the array
formula

=AVERAGE(IF(Data0,Data))

or the nonarray formula

=SUMIF(Data,"0")/COUNTIF(Data,"0")

If you have positive and negative numbers in your data, and you'd include
both positive and negative numbers in your average, then you should also
include zeros in your average.


 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Weighted Average for Different Aggragates of Duplicate Entries? Steve Worksheet Functions 3 July 19th, 2004 09:12 PM
Arrary formula for Average includes blank cells jan Worksheet Functions 4 May 14th, 2004 11:19 PM
Using array-entered formulas for calculation average Kieran Worksheet Functions 4 March 1st, 2004 05:00 AM
Problems using Average MeritageSue Worksheet Functions 3 February 1st, 2004 03:48 AM


All times are GMT +1. The time now is 10:26 AM.


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