W
Watson
I have two adjacent columns: cells in the first column
contain numbers, cells in the second column may contain
either the letter "D" or the letter "H". (The second
column never contains any numbers--only one of those
characters.) I'm using the following formula to calculate
the average of the numbers in the first column (column
G). The COUNTIF function excludes zero values from the
average:
=SUM(G6:G175)/COUNTIF(G6:G175,"<>0")
Now, the trick is this: I need to further refine the
average to exclude from the calculation those cells in the
column which are adjacent to cells in the other column
containing "D". I've tried using OFFSET to no avail.
Does anyone have any ideas?
contain numbers, cells in the second column may contain
either the letter "D" or the letter "H". (The second
column never contains any numbers--only one of those
characters.) I'm using the following formula to calculate
the average of the numbers in the first column (column
G). The COUNTIF function excludes zero values from the
average:
=SUM(G6:G175)/COUNTIF(G6:G175,"<>0")
Now, the trick is this: I need to further refine the
average to exclude from the calculation those cells in the
column which are adjacent to cells in the other column
containing "D". I've tried using OFFSET to no avail.
Does anyone have any ideas?