+ Reply to Thread
Results 1 to 3 of 3

Average Multiple Criteria Single Column

  1. #1
    Registered User
    Join Date
    06-28-2012
    Location
    Shawano, WI
    MS-Off Ver
    MS365 version 2310
    Posts
    98

    Average Multiple Criteria Single Column

    Hello -

    I am trying to average a column (Col AA in 2012 proof w SCTL) based on criteria from 2 other columns (Col F and Col B in 2012 proof w SCTL) with one of these columns have multiple criteria in it (Col B in 2012 proof w SCTL, criteria are A and G). The formula that I have tried is copied below but I am getting an error when I hit CTL+SHIFT+Enter or if I just Enter for that matter.

    Any help on this would be greatly appreciated.

    Thank you in advance!

    =average(if(('2012 proof w SCTL'!F:F=1)*('2012 proof w SCTL'!B:B={"A,"G"},'2012 proof w SCTL'!AA:AA))

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,684

    Re: Average Multiple Criteria Single Column

    You've missed a closed parenthesis ) immediately after your closed curly brace:

    =average(if(('2012 proof w SCTL'!F:F=1)*('2012 proof w SCTL'!B:B={"A,"G"}),'2012 proof w SCTL'!AA:AA))

    It's not a good idea to use full-column references with array formulae - have you thought about using AVERAGEIFS ?

    Hope this helps.

    Pete

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Average Multiple Criteria Single Column

    Another error that might not give you results. Change formula to as per below. See highlighted portion

    =AVERAGE(IF(('2012 proof w SCTL'!F:F=1)*('2012 proof w SCTL'!B:B=[B]{"A","G"}[/B]),'2012 proof w SCTL'!AA:AA))

    Alternatively, try these non-array formula
    Using SUMIFS and COUNTIFS
    Please Login or Register  to view this content.
    Using SUMPRODUCT
    Please Login or Register  to view this content.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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