ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If formula (https://www.excelbanter.com/excel-worksheet-functions/19536-if-formula.html)

Bea

If formula
 
I need to average agroup of cells but IF the total is "0" in one cell then I
do not want it to be average in.... How can I do this....
Exp. Average cells K13 - L13 = cell N23 But if ANY of the cells from K13 -
L13 = ")" I do not want them to be included in the average.

Jason Morin

Assuming all numeric values in cells:

=SUM(A1:A10)/COUNTIF(A1:A10,"<0")

HTH
Jason
Atlanta, GA

-----Original Message-----
I need to average agroup of cells but IF the total

is "0" in one cell then I
do not want it to be average in.... How can I do this....
Exp. Average cells K13 - L13 = cell N23 But if ANY of

the cells from K13 -
L13 = ")" I do not want them to be included in the

average.
.



All times are GMT +1. The time now is 06:45 PM.

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