+ Reply to Thread
Results 1 to 6 of 6

Average numbers from multiple columns based on multiple criteria

  1. #1
    Registered User
    Join Date
    01-22-2015
    Location
    Seattle, WA
    MS-Off Ver
    2010
    Posts
    7

    Average numbers from multiple columns based on multiple criteria

    Hi,

    I have a large spreadsheet with 2500+ rows and many columns. I am trying find a formula that will average values from about 4-5 columns, based on values in two other columns. My attempt is below, but it doesn't seem to be working in all scenarios, so I don't think it's correct:

    Please Login or Register  to view this content.
    Sheet1 is the large spreadsheet
    Participant Engagment is the sheet where I'm trying to calculate the summaries
    Participant Engagement B32 has a text value that I want was one criteria for the average
    I want to average non-blank values in four columns, based on the corresponding text value ("Intervention) in the previous column

    Thanks in advance!

  2. #2
    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,926

    Re: Average numbers from multiple columns based on multiple criteria

    I think it would be easier if you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Average numbers from multiple columns based on multiple criteria

    Try:

    Please Login or Register  to view this content.
    Quang PT

  4. #4
    Registered User
    Join Date
    01-22-2015
    Location
    Seattle, WA
    MS-Off Ver
    2010
    Posts
    7

    Re: Average numbers from multiple columns based on multiple criteria

    Here's a very basic, cleaned up version of what I'm trying to do.

    I want the calculation on Sheet1, based on data in Sheet 2.
    Criteria A, is based on row 1 in Sheet 1, and I want the Average of all the average ranges combined, for values that have "I" in the respective CriteriaB range. Hope that makes sense.

    In theory, all the I's should have non-zero numbers, so a forumla that doesn't use Criteria B, but ignores zeroes and blanks might work. However, the former is preferred.

    AverageMultColumn&Criteria.xlsx

  5. #5
    Registered User
    Join Date
    01-22-2015
    Location
    Seattle, WA
    MS-Off Ver
    2010
    Posts
    7

    Re: Average numbers from multiple columns based on multiple criteria

    This seems close, but didn't give me the correct value when I filtered and averaged. However, I don't understand the formula enough, particularly the ranges listed, to troubleshoot...

  6. #6
    Registered User
    Join Date
    01-22-2015
    Location
    Seattle, WA
    MS-Off Ver
    2010
    Posts
    7

    Re: Average numbers from multiple columns based on multiple criteria

    Sorry, I'm new to this forum. This was in resposne to bebo02199..

    Quote Originally Posted by abambi View Post
    This seems close, but didn't give me the correct value when I filtered and averaged. However, I don't understand the formula enough, particularly the ranges listed, to troubleshoot...

+ 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. Populating fields in multiple cells based on criteria in multiple columns
    By excelalways in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2014, 08:17 AM
  2. formulas for search based on multiple criteria in multiple columns
    By oneworld in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-02-2013, 06:57 AM
  3. [SOLVED] Deleting Duplicates Based on Multiple Criteria from Multiple Columns
    By Franklic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2012, 05:31 PM
  4. Macro to Segregate the data based on Multiple Criteria's in Multiple Columns -Challenging!
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-08-2012, 07:31 AM
  5. [SOLVED] Average Based on Criteria in Multiple Columns
    By sinspawn56 in forum Excel General
    Replies: 2
    Last Post: 07-31-2012, 01:27 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