+ Reply to Thread
Results 1 to 5 of 5

Computing Average

  1. #1
    Registered User
    Join Date
    06-24-2008
    Posts
    5

    Computing Average

    Hi,

    In the attached wokrbook, I need to compue the average in the column "C2" of "Sheet1" based on the following crieteria:

    Open up attached workbook: (Sample.xls).
    Goto "Sheet2".

    The Average of Column "D" for a Given "BF" for "Reports" should be 25.
    The Average of Column "D" for a Given "ENH" for "Reports" should be 25.
    The Average of Column "D" for a Given "WF" for "Reports" should be 47.5.

    This is the desired result.

    Any help would be great.

    Thanks
    Jaggy
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Computing Average

    See Pivot table:
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-24-2008
    Posts
    5

    Re: Computing Average

    Thanks Brother

  4. #4
    Registered User
    Join Date
    06-24-2008
    Posts
    5

    Re: Computing Average

    I want to achieve the same result using Formulas, is it feasible?

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Computing Average

    =SUMPRODUCT(--($A$2:$A$24="reports"),--($B$2:$B$24="bf"),$D$2:$D$24)/SUMPRODUCT(--($A$2:$A$24="reports"),--($B$2:$B$24="bf"))
    but what version of excel have you got?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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