+ Reply to Thread
Results 1 to 8 of 8

Need to find average of an array if corresponding values are within a set range

  1. #1
    Registered User
    Join Date
    05-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Need to find average of an array if corresponding values are within a set range

    Hi Guys,

    Need your help. I need to calculate the average of an array if the corresponding values are falling in a particular range.

    For example: say there is a list of unique value in A5:A100 in range of say 5 to 50, and corresponding to that in B5:B100 there are some values. now i need to find that if the value in A5:A100 are in the range of say >10 and <15 then return me the average of corresponding values in range B5:B100.

    Is it possible? may be using if or match or something else.

    I have also attached the excel for reference.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Need to find average of an array if corresponding values are within a set range

    Try the AVERAGEIFS function
    Last edited by Pepe Le Mokko; 05-21-2013 at 02:50 AM.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need to find average of an array if corresponding values are within a set range

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

    Drag it down...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    05-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need to find average of an array if corresponding values are within a set range

    Thanks Pepe Le Mokko, i tried it.. but i think i am not able to use it properly. I am not able to create the criteria of Range say between 20-25 only then take average of corresponding values.

  5. #5
    Registered User
    Join Date
    05-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need to find average of an array if corresponding values are within a set range

    Hey tried the formula you suggested but it is giving me average of values only i.e., D column but i want criteria or condition on Values and output for corresponding values on E column.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need to find average of an array if corresponding values are within a set range

    Show the expected output by explaining how you are arriving it.

  7. #7
    Registered User
    Join Date
    05-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need to find average of an array if corresponding values are within a set range

    Thanks sixthsense it is resolved using your formula... i just have to interchange the range and criteria in your formula.. as you have added condition on percentage and return average for values and i wanted other way round... thanks alot guys you all are great...

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need to find average of an array if corresponding values are within a set range

    Glad it helps you and thanks for the feedback

+ 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