How can I get a average of a row without the cells that contain 0?
P Peo Sjoblom Sep 25, 2008 #2 =SUMIF(A2:E2,"<>0")/COUNTIF(A2:E2,"<>0") you can also use an array formula like =AVERAGE(IF(2:2<>0,2:2)) entered with ctrl + shift & enter -- Regards, Peo Sjoblom
=SUMIF(A2:E2,"<>0")/COUNTIF(A2:E2,"<>0") you can also use an array formula like =AVERAGE(IF(2:2<>0,2:2)) entered with ctrl + shift & enter -- Regards, Peo Sjoblom
M Matt Sep 25, 2008 #4 What I have is the average of C3838 I dont want to average any 0 that may showup in these cells..
M Matt Sep 25, 2008 #5 Thanks I just got it to work Dave Peterson said: =sum(1:1)/(count(1:1)-countif(1:1,0)) (if you're looking at row 1) Click to expand...
Thanks I just got it to work Dave Peterson said: =sum(1:1)/(count(1:1)-countif(1:1,0)) (if you're looking at row 1) Click to expand...