+ Reply to Thread
Results 1 to 6 of 6

Average cells in column B that have value "Test" in column A

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    41

    Average cells in column B that have value "Test" in column A

    I am looking to take an Average of all the cells in column B that have "Test" as a value for column A.

    Something like if(A:A = "Test",Average(B:B))

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Average cells in column B that have value "Test" in column A

    Maybe an array formula.

    Enter your formula like this then enter Ctrl + Shift + Enter at the same time

    =AVERAGE(IF($A:$A="Test",$B:$B))

  3. #3
    Registered User
    Join Date
    10-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Average cells in column B that have value "Test" in column A

    Yes. Thank You.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Average cells in column B that have value "Test" in column A

    Try using the non-array AVERAGEIFS() function:

    http://www.excelfunctions.net/Excel-...-Function.html

    =AVERAGEIFS(B:B,A:A,"Test")

    or AVERAGEIF() function:

    http://www.excelfunctions.net/Excel-...-Function.html

    =AVERAGEIF(A:A,"Test",B:B)

  5. #5
    Registered User
    Join Date
    10-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Average cells in column B that have value "Test" in column A

    Yes,


    =AVERAGEIF(A:A,"Test",B:B)


    also works great.

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Average cells in column B that have value "Test" in column A

    @ gammaman

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

+ 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