Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do I exclude zero's from an average of five non-adjacent cells
I am trying to average the values in several non-adjacent cells in a row, and
a number of them contain zero values. How do I exclude the zero values from the average? They are non-adjacent, or not in a specific range (e.g., they may be in cells A2, C2, F2, J2, L2). |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do I exclude zero's from an average of five non-adjacent cells
How about:
=SUM(A2:L2)/(COUNTIF(A2:L2,"<" & 0)-COUNTBLANK(A2:L2)) |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do I exclude zero's from an average of five non-adjacent cells
this may work, you didn't specilfy if there were or weren't any other
numbers in the row that you didn't want in the average. =SUMIF(A2:N2,"0")/MAX(1,COUNTIF(A2:N2,"0")) -- Gary "MikeG" wrote in message ... I am trying to average the values in several non-adjacent cells in a row, and a number of them contain zero values. How do I exclude the zero values from the average? They are non-adjacent, or not in a specific range (e.g., they may be in cells A2, C2, F2, J2, L2). |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Average of cells that exclude conditional formats? | Excel Worksheet Functions | |||
Average non-adjacent cells & exclude zeros | Excel Discussion (Misc queries) | |||
Average Non-Continuous Cells Without Zero's | Excel Worksheet Functions | |||
Limit or Exclude cells in Average and Sum formula | Excel Worksheet Functions | |||
Average non continguous cells, excluding zero's | Excel Worksheet Functions |