calculating averages and using conditional "if" statements

A

achieve

i am attempting to average a range of cells, in which each cell value cannot
be above a certain quantity. if a cell value is above the set quantity, i
want for excel to calculate the average, excluding the cell reference that
contains the value above the set qunatity. in words, this is what i want to
say (in the numbers/quantitative statement):

if any cells in the range c8:du8 are <4, calculate the average of cells
c8:du8; however, if any cells in this range are >4, calculate the average of
the range, BUT exclude those cells (with values greater than 4) from the
formula.
 
T

T. Valko

If the values are <4 do this
If the values are >4 do that

What if the values ARE 4?

Biff
 
D

Dave F

=SUMIF(...)/COUNTIF(...) allows you to specify the constraint <4.

Recall that AVERAGE is merely SUM/COUNT.

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top