+ Reply to Thread
Results 1 to 4 of 4

Need help with Average IF formula based on multiple criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    06-12-2013
    Location
    Fairbury NE
    MS-Off Ver
    Excel 2007
    Posts
    70

    Need help with Average IF formula based on multiple criteria

    Hi,
    I need to average a column based on two criteria and can't seem to figure this out. I can average based off on one column, but is there a way to average based off of info in two columns?

    Sample Spreadsheet:

    Location, Number, Average Column
    A, 123, 1
    A, 123, 2
    A, 123, 3
    B, 123, 4
    B, 123, 5
    B, 123, 9

    I need to find the average of Location A, Number 123 (i.e., 2) and average of Location B, Number 123 (i.e, 9).

    Any suggestions?
    Last edited by maryren; 10-08-2013 at 12:52 PM.

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Need help with Average IF formula based on multiple criteria

    Hello Maryren,

    Based on your profile, you are using Excel 2007, so take a look on AVERAGEIFS.

    =AVERAGEIFS(AverageColumn,Location,"A",Number,123)

    If you need compatibility with pre 2007 versions, could use this Array Formula with CTRL+SHIFT+ENTER

    =AVERAGE(IF(Location="A",IF(Number=123,AverageColumn)))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    06-12-2013
    Location
    Fairbury NE
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Need help with Average IF formula based on multiple criteria

    I've tried the formula below and it does not work, guessing I don't have it written correctly:

    =AVERAGE(IF(A1:A6="A",IF(B2:B6="123",C2:C6))), using Crtl+Shift+Enter, it returns an error.

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Need help with Average IF formula based on multiple criteria

    All ranges must be in equal size. The first range is A1:A6 & others are from 2nd row.

    =AVERAGE(IF(A2:A6="A",IF(B2:B6="123",C2:C6)))

    Change A1:A6 to A2:A6

    Also, for the numbers if you are using REAL numbers remove quotes between the number ("123") just use =123

+ 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. GET AVERAGE based on multiple criteria
    By pphg in forum Excel General
    Replies: 1
    Last Post: 11-16-2012, 05:47 AM
  2. [SOLVED] Calculating Average Based on Multiple Criteria
    By Scott_88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-13-2012, 07:05 AM
  3. Average based on multiple criteria
    By Bob-2012 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-17-2012, 08:28 PM
  4. Average based on multiple criteria
    By Nadir Soofi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-07-2008, 06:56 PM
  5. Replies: 8
    Last Post: 03-21-2008, 12:09 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