average function

I

inoexcel

Hi,

If I have a list of random numbers down columnA, how would I write up a
formula in another cell that calculates an average of the figures
greater than a certain figure (say, 0) but less than another figure
(500000).

Thanks
 
D

Don Guillett

this is an ARRAY formula so must be entered with ctrl+shift+enter
=AVERAGE(IF((A2:A22>0)*(A2:A22<100),A2:A22))
 
G

Guest

You can use the DAVERAGE function.

The function is =DAVERAGE(database,field,criteria)


For example:

A B
1 Random Random
2 >0 <500000
3 Random
4 54
5 454540654
6 45345
7 11864
8 154
9 0
10 -154
11 15053


=DAVERAGE(A3:A11, "Random", A1:B2)

Hope it works for you.
 

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

Similar Threads


Top