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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 04:00 AM |
Problems using Average | MeritageSue | Worksheet Functions | 3 | February 1st, 2004 02:48 AM |