ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how to calculate average value in a row ignoring values below "x" (https://www.excelbanter.com/excel-discussion-misc-queries/151668-how-calculate-average-value-row-ignoring-values-below-x.html)

ed both

how to calculate average value in a row ignoring values below "x"
 
i am trying to calculate the average of a column for values above 25000 using
following formula : =average(if(c8:c10025000,c8:c100,"")) but can't get it
working - any good ideas ? - thanks !!

Andrew Q

how to calculate average value in a row ignoring values below "x"
 
Try:

=SUMIF(C8:C100,"25000") / COUNTIF(C8:C100,"25000")

"ed both" wrote:

i am trying to calculate the average of a column for values above 25000 using
following formula : =average(if(c8:c10025000,c8:c100,"")) but can't get it
working - any good ideas ? - thanks !!


Bob Phillips

how to calculate average value in a row ignoring values below "x"
 
=AVERAGE(IF(C8:C10025000,C8:C100))

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)

"ed both" wrote in message
...
i am trying to calculate the average of a column for values above 25000
using
following formula : =average(if(c8:c10025000,c8:c100,"")) but can't get
it
working - any good ideas ? - thanks !!




Toppers

how to calculate average value in a row ignoring values below "x"
 
=average(if(c8:c10025000,c8:c100))

Enter with Ctrl+Shift+Enter rather than Enter

"ed both" wrote:

i am trying to calculate the average of a column for values above 25000 using
following formula : =average(if(c8:c10025000,c8:c100,"")) but can't get it
working - any good ideas ? - thanks !!



All times are GMT +1. The time now is 04:54 PM.

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