First, let me explain the framework. I am creating a one sheet document with several simple calculations except one.

I am utilizing 38 rows on the sheet, row 1 is the column names, rows 2-37 are for data, and row 38 is for totaling. I have a situation where 2 columns of data are used to create a third column's data, but if i don't use all 35 available cells(because not all 35 are needed at that time) a "$0" appears in the cells with no associative data.

My first question is how to make those "$0" disappear if no data is present.

(Example: I only have data in rows 2-15, but the column that contains the formula shows "$0" in rows 16-37.)

My second question is a little harder for me to explain. I have a column that I want the formula in row 38 to not be a basic math computation(+,-,*,/) of the previous 35 cells, but instead an average. This isn't to hard normally; my first thought was to right the formula as =(SUM(G2:G37))/35, but realized that if I only had data for 15 cells for example and not 35, the computation would be incorrect. How can I create a formula that divides by the number of cells with actual data instead of the possible data range.

(Example: I only have data in rows 2-15, so I want the average to be the sum of data in those cells divided by 13, not 35.)

Thank You