ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Finding the Average (https://www.excelbanter.com/excel-discussion-misc-queries/178556-finding-average.html)

Mike H.

Finding the Average
 
I want to average an entire row, but there are cells with the value of zero.
I only want to average the cells that have a value greater than zero. The
problem is this. I don't want to clear out the cells with the value of zero
because they are programmed with formulas. I need the average to continue to
modify when these cells value are greater than zero.
--
Mike H.
Data Review Specialist

FSt1

Finding the Average
 
hi
=SUM(A1:F1)/COUNTIF(A1:F1,"0")

Adjust to fit your data.

Regards
FSt1

"Mike H." wrote:

I want to average an entire row, but there are cells with the value of zero.
I only want to average the cells that have a value greater than zero. The
problem is this. I don't want to clear out the cells with the value of zero
because they are programmed with formulas. I need the average to continue to
modify when these cells value are greater than zero.
--
Mike H.
Data Review Specialist


Bob Phillips

Finding the Average
 
=AVERAGE(IF(1:10,1:1))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Mike H." wrote in message
...
I want to average an entire row, but there are cells with the value of
zero.
I only want to average the cells that have a value greater than zero. The
problem is this. I don't want to clear out the cells with the value of
zero
because they are programmed with formulas. I need the average to continue
to
modify when these cells value are greater than zero.
--
Mike H.
Data Review Specialist




joel

Finding the Average
 
You can create your own average

=SUMIF(4:4,"0")/COUNTIF(4:4,"0")

"Mike H." wrote:

I want to average an entire row, but there are cells with the value of zero.
I only want to average the cells that have a value greater than zero. The
problem is this. I don't want to clear out the cells with the value of zero
because they are programmed with formulas. I need the average to continue to
modify when these cells value are greater than zero.
--
Mike H.
Data Review Specialist


Dave F[_2_]

Finding the Average
 
On Mar 3, 12:33*pm, "Bob Phillips" wrote:
=AVERAGE(IF(1:10,1:1))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Mike H." wrote in message

...



I want to average an entire row, but there are cells with the value of
zero.
I only want to average the cells that have a value greater than zero. The
problem is this. I don't want to clear out the cells with the value of
zero
because they are programmed with formulas. I need the average to continue
to
modify when these cells value are greater than zero.
--
Mike H.
Data Review Specialist- Hide quoted text -


- Show quoted text -


If you're using XL 07, you can use the AVERAGEIF function and avoid
having to use an array formula.

Dave


All times are GMT +1. The time now is 03:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com