+ Reply to Thread
Results 1 to 3 of 3

Average with multiple "or" and "and" conditions

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    Average with multiple "or" and "and" conditions

    Hello,

    I am trying to average the named range "initial", when the column income has one of 3 values AND the column age has one of two values. After tons of looking this is the closest I got:

    =AVERAGE(IF(Income={"Less than $20,000","$20,000-$30,000","$30,000-$40,000"},IF(Age="25 to 29",Initial)))

    this works, but only has one value for age.

    =AVERAGE(IF(Income={"Less than $20,000","$20,000-$30,000","$30,000-$40,000"},IF(Age={"25 to 29","30 to 34"},Initial)))

    this returns an error.

    Most importantly, I want to do this with formulas. Ideally:
    =AVERAGE(IF(Income={D2,D3,D4},IF(Age={G2,G3},Initial)))

    Thanks so much

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Average with multiple "or" and "and" conditions

    A shot in the dark, but try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    Re: Average with multiple "or" and "and" conditions

    Unfortunately when checking that by filtering the income and age columns then highlighting the remaining cells to see the average, that returns the wrong value. Thanks so much though

+ 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