+ Reply to Thread
Results 1 to 4 of 4

Criteria question - AverageIF (if you please)

  1. #1
    Registered User
    Join Date
    01-14-2011
    Location
    Bristol
    MS-Off Ver
    Excel 2003
    Posts
    5

    Criteria question - AverageIF (if you please)

    Hello there,

    =AVERAGEIF(C11:C251,">=6.8")

    This averages all the values in the range that are greater than or equal to 6.8...

    However, I wish that instead of static "6.8" it could link to another cell, A9;

    i.e. to average all the values in the range that are greater than or equal to the number in A9.

    =AVERAGEIF(C11:C251,">=A9") returns DIV#0.

    THANK YOU!

    Alex

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Criteria question - AverageIF (if you please)

    Try:

    =AVERAGEIF(C11:C251,">="&A9)

  3. #3
    Registered User
    Join Date
    01-14-2011
    Location
    Bristol
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Criteria question - AverageIF (if you please)

    yes mate that is exactly what I was after, cheers!!

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Criteria question - AverageIF (if you please)

    And, if you want the operator to be variable also you can store the criteria as a string, eg:

    Please Login or Register  to view this content.
    at which point

    Please Login or Register  to view this content.
    so you can change the operator just as you do the value

    Obviously if the operator does not change use zbor's suggestion (quicker to amend A9)

    edit: on an aside it would be a good idea to update your Version in the profile (AVERAGEIF XL2007+ of course)

+ 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