Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
viabello
 
Posts: n/a
Default Taking age group Ie ages 20-29 and picking out net sales for group

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Taking age group Ie ages 20-29 and picking out net sales for group

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 EditCopy
Then EditPaste SpecialValuesOK

Biff

"viabello" wrote in message
...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"