Taking age group Ie ages 20-29 and picking out net sales for group

G

Guest

ok for instance i have to find the average net sales for each age group, ie
age groups 20-29, 30-39, 40-49 etc all the way til 70-79.
i have a list of net sales ie column I2- I101
and a list of ages(H2-H101) from 20-79, but in no order! (random)
and i need to pick up from the list of net sales(I2-I101) the average net
sales for the age group 20-29 and age group 30-39 etc all the way til 70-79
what formula do i punch in!?
So bascially i need to select (I2- I101) and then tell the system to find
the average net sales for only the people who ages where from ages 20- 29!
So how do i do that?
and thanks to Mr Bob Phillips!!!!
You helped me out early and had the right answer~~~you rock!
Thanks
A
 
B

Biff

Hi!

Try this:

Enter this formula in A2:

=ROW($20:$20)+(ROWS($1:1)-1)*10

Enter this formula in B2:

=A2+9

Enter this formula as an array using the key combination of CTRL,SHIFT,ENTER
in C1:

=AVERAGE(IF((H$2:H$101>=A2)*(H$2:H$101<=B2),I$2:I$101))

Select all 3 cells: A2, B2 and C2 and copy down to row 7.

Select the range A2:B7
Goto Edit>Copy
Then Edit>Paste Special>Values>OK

Biff
 

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