+ Reply to Thread
Results 1 to 6 of 6

Conditional Averages

  1. #1
    Registered User
    Join Date
    07-05-2012
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2010
    Posts
    57

    Conditional Averages

    So I need to get the averages based on a few determinants. As you see in the example I am trying to find the average response rate or "R.R." (The red section). I want it to match cell A17 to all the cells that match in the larger portion (big table above - column C), and average all of the R.R.'s for those that are "Yes".

    Basically I am going to be doing a bunch of these smaller tables that need to pull the determinant that can be located in the main data, and average all of the R.R.'s that match that value (Yes) for this specific case).

    Any suggestions??? Thanks!

    Rob
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-05-2012
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Conditional Averages

    Sorry one more quick thing, I want the equation to omit and responses that are 0 so it doesn't throw off the average.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Conditional Averages

    if you just want to average all "yes's" or all "no's", then use this...
    =IFERROR(AVERAGEIF($C$2:$C$10,$A16,$E$2:$E$10),0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Conditional Averages

    Based on your last post, try this...
    =IFERROR(AVERAGEIFS($E$2:$E$10,$C$2:$C$10,$A16,$E$2:$E$10,">0"),0)

    If you want to break down by company...
    =IFERROR(AVERAGEIFS($E$2:$E$10,$C$2:$C$10,$A16,$B$2:$B$10,$B16,$E$2:$E$10,">0"),0)

  5. #5
    Registered User
    Join Date
    07-05-2012
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Conditional Averages

    Thanks, worked!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Conditional Averages

    happy to help

+ 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