Average except for something lower...

C

Clubber2010

How can i do a formula that will calculate the average of a few cells as long
as the cell is over a certain amount... ??

Eg, i have

40
42
45
30

I would like the average of all of them expect any that are lower than 35

e.g if(a1:a4<35,takeaverage,ifnotexcludeanythinglower)

^^ i know that will not work but i am sure someone will know how to make it
work..



Can you help ?



Also i would also like to may a graph with the above information selecting
all the 4 cells, but would not like anything other than 3.30 on the graph...
Is this possible?
 
M

Mike H

Hi,

Try this array formula

=AVERAGE(IF(A1:A10<35,IF(A1:A10<>"",A1:A10)))

This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

Mike
 
P

Pecoflyer

Clubber2010;368271 said:
How can i do a formula that will calculate the average of a few cells as
long
as the cell is over a certain amount... ??

Eg, i have

40
42
45
30

I would like the average of all of them expect any that are lower than
35

e.g if(a1:a4<35,takeaverage,ifnotexcludeanythinglower)

^^ i know that will not work but i am sure someone will know how to
make it
work..



Can you help ?



Also i would also like to may a graph with the above information
selecting
all the 4 cells, but would not like anything other than 3.30 on the
graph...
Is this possible?

Hi,
try =average(if(a1:a4<35,a1:a4)) and enter as an array formula with
Ctrl+Shift+Enter
 

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