+ Reply to Thread
Results 1 to 2 of 2

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

  1. #1
    viabello
    Guest

    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. #2
    Biff
    Guest

    Re: 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 Edit>Copy
    Then Edit>Paste Special>Values>OK

    Biff

    "viabello" <[email protected]> wrote in message
    news:[email protected]...
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1