+ Reply to Thread
Results 1 to 3 of 3

Getting an average across columns based on criteria.

  1. #1
    Forum Contributor
    Join Date
    01-21-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    106

    Getting an average across columns based on criteria.

    Hey guys, need your help again. I'm trying to create a formula that will allow me to use the AverageIfs function to get an average across columns.
    Here is my formula but it's not working. =AVERAGE(IF((A$44:A$1000=A8)+(D44:D1000=C1),E44:I55))

    Based on the Criteria I'm trying to average E:I. Any thoughts?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Getting an average across columns based on criteria.

    The columns ranges must be the same size throughout the formula. Assuming you want to average the values in column E based on specific values matching in columns A and E, the syntax would be:

    =AVERAGEIFS($E$44:$E$1000, $A$44:$A$1000, A8, $D$44:$D$1000, C1)

    You could try changing the highlighted red to I, not sure what will happen.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    01-21-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Getting an average across columns based on criteria.

    Thanks for you input. I tried changing the E to an I making it E$44:I$1000 but it gives me an error message. Why would that be?

+ 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. Average based on criteria and multiple criteria
    By batchjb69 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-05-2016, 04:30 AM
  2. Average numbers from multiple columns based on multiple criteria
    By abambi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-23-2015, 01:52 PM
  3. Average columns with criteria
    By rarementality in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2014, 10:53 AM
  4. [SOLVED] sum and average if one criteria in any of 3 columns
    By alexcrofut in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2014, 02:00 PM
  5. [SOLVED] Average of two columns by criteria
    By te31 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-15-2013, 06:12 PM
  6. [SOLVED] Average if criteria in 2 columns is met.
    By ea223 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-18-2012, 01:00 AM
  7. [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