+ Reply to Thread
Results 1 to 6 of 6

AverageIfs for multiple criteria in different columns

  1. #1
    Registered User
    Join Date
    02-03-2013
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    4

    Exclamation AverageIfs for multiple criteria in different columns

    I am trying to find a formula that finds the average for multiple criteria in different columns (whether or not it is actually there, I still need excel to verify that it checked all columns). I tried to use this as an example:=AVERAGEIFS(K4:K2409,F4:F2409,"K2303",B4:E2409,"TN"). I also tried to break out the B, C, D, and E columns for the criteria. For example =AVERAGEIFS(K4:K2409,F4:F2409,"KT303",B4:B2409,"TN",C4:C2409,"TN",D4:D2409,"TN",E4:E2409,"TN"). Because TN can show up in either row and column combination...I need a formula that will let me get the average if TN is in the row anywhere in the 4 (B, C, D, and E columns). Any ideas?

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: AverageIfs for multiple criteria in different columns

    try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: AverageIfs for multiple criteria in different columns

    Averageifs just deals with and clauses .Here is a method to test OR clauses
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: AverageIfs for multiple criteria in different columns

    Try thus formula
    Gives average of K4:K2409, If F column is "KT303" and Any of the columns C , D , E contains "TN".

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-03-2013
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: AverageIfs for multiple criteria in different columns

    Thanks! I tried vlady's and it worked! Thanks all who nd helped me out!

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: AverageIfs for multiple criteria in different columns

    This "array formula" should also work

    =AVERAGE(IF((F4:F2409="KT303")*(B4:E2409="TN"),K4:K2409))

    confirmed with CTRL+SHIFT+ENTER

    Edit: although both that formula and Vlady's will include K4, for example, multiple times in the average if B4, C4, D4 and E4 are all = "TN". Is it possible to have multiple "TN"s on one row? If so do you want to include that row only once or multiple times? If only once change formula to

    =AVERAGE(IF(MMULT((F4:F2409="KT303")*(B4:E2409="TN"),{1;1;1;1}),K4:K2409))
    Last edited by daddylonglegs; 02-05-2013 at 12:34 PM.
    Audere est facere

+ 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