+ Reply to Thread
Results 1 to 5 of 5

AverageIF excluding matching columsn over a number

  1. #1
    Registered User
    Join Date
    03-01-2011
    Location
    Austin,TX
    MS-Off Ver
    Excel 2007
    Posts
    3

    AverageIF excluding matching columsn over a number

    so i'm trying to get mroe accurate data out of my reports. I'm looking for the Average of a column excluding anything higher then a certain mark and equaling the column next to it. Not sure if totally possible. Still new to excel

    Example.

    A B
    10 10
    15 17
    20 21
    35 35
    40 41
    47 47

    So say for htis. I want the average of Column A over the A and the Average of B over B. that i have. But over those numbers. I want the Average of Column A excluding anything 35 and over that equals column B. So Average everything but the 35 and 47. ..And the same for Column B. Thanks for any assistance you can provide

    Carlos

    edit: i'm not stuck on the AverageIf formula if it needs to be changed, i'm all ears..or eyes....

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: AverageIF excluding matching columsn over a number

    Try:

    =AVERAGE(IF((A2:A7<35)+(A2:A7<>B2:B7),A2:A7))

    confirmed with CTRL+SHIFT+ENTER not just ENTER

    and similarly for column B.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-01-2011
    Location
    Austin,TX
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: AverageIF excluding matching columsn over a number

    awesome!! One more thing..since the amount verfies per week. sometimes its 20 ..sometimes its 30...can we add a ">=0" statment? That way i can have it out to 40 and not have to adjust the formula every week? Reall thanks! i never would ahve gotten that.

    Edit: By the way, that did exactly what i was looking for!! thanks soo much!!
    Last edited by los318; 03-01-2011 at 03:57 PM.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: AverageIF excluding matching columsn over a number

    Do you mean?

    =AVERAGE(IF(A2:A7>0,IF((A2:A7<35)+(A2:A7<>B2:B7),A2:A7)))

    adjusting ranges to suit and re-confirming with CTRL+SHIFT+ENTER

  5. #5
    Registered User
    Join Date
    03-01-2011
    Location
    Austin,TX
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: AverageIF excluding matching columsn over a number

    Exactly it. thanks again for you time!

+ 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