ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   averages formula (https://www.excelbanter.com/excel-worksheet-functions/33756-averages-formula.html)

Gerald

averages formula
 
i have a column, A1 - A10. Cell A11 is the average of all those numbers in
those cells. How do i manipulate the formula so the average doesn't
include the numbers in cells A4 and A8? Or more correctly, i dont want the
average to include any values that are less then 400.
I have tried this formula, but it ddnt work.
=average(A1:A10)/COUNTIF(A1:A10,"400")


Peo Sjoblom

A couple of ways

=SUMIF(A1:A10,"=400")/COUNTIF(A1:A10,"=400")

or

=AVERAGE(IF(A1:A10=400,A1:A10))

the latter entered with ctrl + shift & enter

--
Regards,

Peo Sjoblom

(No private emails please)


"Gerald" wrote in message
...
i have a column, A1 - A10. Cell A11 is the average of all those numbers in
those cells. How do i manipulate the formula so the average doesn't
include the numbers in cells A4 and A8? Or more correctly, i dont want the
average to include any values that are less then 400.
I have tried this formula, but it ddnt work.
=average(A1:A10)/COUNTIF(A1:A10,"400")




All times are GMT +1. The time now is 08:26 AM.

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