+ Reply to Thread
Results 1 to 8 of 8

Conditional Averaging

  1. #1
    Registered User
    Join Date
    10-14-2011
    Location
    Utah
    MS-Off Ver
    Excel 2007
    Posts
    25

    Conditional Averaging

    I have three columns of data, one containing numerical values. I want to average the numbers based on the other two columns of data. Attached is an example file with the desired output I'd like. What is a formula that will do this? AverageExample.xlsx

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Conditional Averaging

    Try this.....

    For Y Average

    Please Login or Register  to view this content.
    For N Average

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    10-14-2011
    Location
    Utah
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Conditional Averaging

    Thanks, but I realized I gave a bad example. Not all the values in the other two columns are the same. Here's a better example: AverageExample2.xlsx So basically I need to average all values in column C that correspond to non-blank cells in columns A and B.
    Last edited by geddes_3; 01-23-2014 at 02:02 AM.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Conditional Averaging

    What is your criteria for Y and N?

  5. #5
    Registered User
    Join Date
    10-14-2011
    Location
    Utah
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Conditional Averaging

    I forgot to change the Y and N on the new example. For the desired output, I need to average all the values in column C that correspond to non-blank values in column A and column B. All the cells in columns A and B contain unique individual values.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Conditional Averaging

    Try these array formula, they need to be confirmed with Ctrl+Shift+Enter

    For Y average

    Please Login or Register  to view this content.
    For N average

    Please Login or Register  to view this content.
    Remember to confirm both the formulas with Ctrl+Shift+Enter

  7. #7
    Registered User
    Join Date
    10-14-2011
    Location
    Utah
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Conditional Averaging

    Brilliant! That works great. Thank you!

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Conditional Averaging

    Glad to help you. Thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Conditional Averaging
    By VBAerthang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2013, 11:52 PM
  2. Conditional averaging
    By EGR2317 in forum Excel General
    Replies: 4
    Last Post: 06-02-2010, 11:28 AM
  3. Conditional Averaging
    By dsterl2000 in forum Excel General
    Replies: 4
    Last Post: 07-08-2009, 03:27 PM
  4. Conditional averaging
    By Kullaroo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2007, 09:21 PM
  5. [SOLVED] Conditional averaging
    By ^'^BatAttaK^'^ in forum Excel General
    Replies: 4
    Last Post: 06-13-2005, 08:05 PM

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