djl0525 Well-known Member Joined Dec 11, 2004 Messages 1,235 Dec 21, 2005 #1 Can someone help me with a formula, please? I want to find the average of the entire column A, but I want to ignore the 0 values. Say there's 1000 values and 50 of them are 0. I want the average of the 950 non-blank cells. Thanks -- DJ
Can someone help me with a formula, please? I want to find the average of the entire column A, but I want to ignore the 0 values. Say there's 1000 values and 50 of them are 0. I want the average of the 950 non-blank cells. Thanks -- DJ
jss1234 Active Member Joined May 28, 2004 Messages 434 Dec 21, 2005 #2 You can use a formula in a column to the right - ie: =IF(A1=0,"",A1) Then average the new column. The "" will leave the column blank, and the average will ignore it automatically.
You can use a formula in a column to the right - ie: =IF(A1=0,"",A1) Then average the new column. The "" will leave the column blank, and the average will ignore it automatically.
D Domenic MrExcel MVP Joined Mar 10, 2004 Messages 19,403 Dec 21, 2005 #3 To average values greater than zero, try... =AVERAGE(IF(A1:A1000>0,A1:A1000)) ...confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Hope this helps!
To average values greater than zero, try... =AVERAGE(IF(A1:A1000>0,A1:A1000)) ...confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Hope this helps!