+ Reply to Thread
Results 1 to 3 of 3

averageif criteria when the range must be within a set distance of a cell's value

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    averageif criteria when the range must be within a set distance of a cell's value

    Hi all,

    I'm trying to use an averageif formula to return the average of values in column E in cases where the values in column C are within 400 points of B2. So the average over values of column E is taken only if the the absolute value of the difference between B2 and each cell in C is less than or equal to 400. I was wondering what the necessary command might be.

    =AVERAGEIFS(E:E,C:C, ??within 400 points of B2??)

    would really appreciate yourhelp, I'm realy stuck and I'm sure it's not that complicated!

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

    Re: averageif criteria when the range must be within a set distance of a cell's value

    Try:

    =AVERAGEIFS(E:E,C:C,">="&B2-400,C:C,"<="&B2+400)
    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
    08-13-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: averageif criteria when the range must be within a set distance of a cell's value

    Thanks NBVC!

+ 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