How do you average values in a row, ignoring any zeros?
B Bob Phillips Feb 28, 2005 #2 =AVERAGE(IF(A1:A100<>0,A1:A100)) This is an array formula, so commit with Ctrl-SHift-Enter. -- HTH RP (remove nothere from the email address if mailing direct)
=AVERAGE(IF(A1:A100<>0,A1:A100)) This is an array formula, so commit with Ctrl-SHift-Enter. -- HTH RP (remove nothere from the email address if mailing direct)
J Jason Morin Feb 28, 2005 #5 Just an alternative to the typical AVERAGE array formula: =SUM(1:1)/SUM(COUNTIF(1:1,{"<>","*",0})*{1,-1,-1}) HTH Jason Atlanta, GA
Just an alternative to the typical AVERAGE array formula: =SUM(1:1)/SUM(COUNTIF(1:1,{"<>","*",0})*{1,-1,-1}) HTH Jason Atlanta, GA
H Harlan Grove Feb 28, 2005 #6 Peo Sjoblom wrote... =AVERAGE(IF(A11<>0,A11)) entered with ctrl + shift & enter Click to expand... .... Normal caveats with respect to continuity - if there could be positive and negative values, zero values should be included. If only positive values should be included in averages, that should be made explicit, i.e., =AVERAGE(IF(A11>0,A11))
Peo Sjoblom wrote... =AVERAGE(IF(A11<>0,A11)) entered with ctrl + shift & enter Click to expand... .... Normal caveats with respect to continuity - if there could be positive and negative values, zero values should be included. If only positive values should be included in averages, that should be made explicit, i.e., =AVERAGE(IF(A11>0,A11))