+ Reply to Thread
Results 1 to 12 of 12

Grouping and averaging

  1. #1
    Registered User
    Join Date
    02-16-2007
    Posts
    54

    Grouping and averaging

    I hope some clever soul can help ....

    The organisation I wish to report on has many cost centres which each contain many people. These people are on many different grades, and each are on differing salaries (even those in the same grade).

    One “reporting group” has many cost centres.

    There are several reporting groups.

    I need to report on average salary per grade / per reporting group.

    I have attached some dummy data. The “rep group” tab displays the reporting groups and the cost centre mappings (ie reporting group England contains cost centres 1, 2, 3, 4, 5, 6 and 7). Note in reality the cost centres are not this simple, they are 6 digits and varying ranges.

    In the “salaries” sheet each individual is listed along with their cost centre (in column c) and their grade (column d). Their salary is shown in E.

    I hope this is clear, thanks for looking!!
    Attached Files Attached Files
    Last edited by VBA Noob; 12-02-2008 at 01:59 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Perhaps re-attach document with showing some expected outcome.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-16-2007
    Posts
    54

    Thumbs up

    "outcome" tab shows format for desired outcome, column c would display the average salary in the category. Many thanks!!
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try in C2 of Outcome:

    Please Login or Register  to view this content.
    Which must be confirmed with CTRL+SHIFT+ENTER not just ENTER...then copied down.
    Last edited by NBVC; 12-02-2008 at 12:46 PM. Reason: Fixed Offset reference cell

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Note:

    I revised the Offset() reference cell in formula above... this should give now correct answer

  6. #6
    Registered User
    Join Date
    02-16-2007
    Posts
    54

    Question

    thanks, but it's not quite right, i'm taking a look at it now (if you drag it down on my example it doesn't work)

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    See attached...

    Is it wrong? If so, why?
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-16-2007
    Posts
    54
    sorry, it;'s still no right for some reason - if i drag down the average salary for grades in England are all the same, which cannot be the case. Also, scotland and wales show 0

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You must confirm the formula in H2 with CTRL+SHIFT+ENTER.. then copy it down

  10. #10
    Registered User
    Join Date
    02-16-2007
    Posts
    54
    no, i have automatic selected

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You are fast! I changed my post... see previous post again please.

  12. #12
    Registered User
    Join Date
    02-16-2007
    Posts
    54

    Red face

    That is magic, it's great. Thakyou so much!!!!! Happy to close this!

+ 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