+ Reply to Thread
Results 1 to 5 of 5

Return list of values index/match

  1. #1
    Registered User
    Join Date
    08-26-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Return list of values index/match

    Sorry if I missed the answer to this with my google searches.

    I have a list of data that I want to average the number in column B when there is a match in column A

    COLUMN A | COLUMN B
    alpha | 100
    beta | 200
    gamma | 300
    alpha | 400
    beta | 500

    What I'm looking to do is return the MEAN of values in column B where column A = alpha. Though, I would settle for returning a list of the values that match the criteria. Index/Match combinations don't seem to be helping me because they only return the first match, I'd like to return all matches.

    What direction would you point me to accomplish this? Thanks!
    Last edited by spivieguy1; 08-26-2009 at 02:51 PM. Reason: problem solved

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

    Re: Return list of values index/match

    In XL2007

    Try

    =AverageIf(A1:A100,"alpha",B1:B100)

    adjust ranges to suit.
    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-26-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Return list of values index/match

    Thanks! I don't know how I missed that.

    What would you do if you wanted to do the same thing, but after matching more than one criteria?

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

    Re: Return list of values index/match

    There is an Averageifs() function for multiple criteria...

    e.g.

    =AVERAGEIFS(B1:B100,A1:A100,"alpha",C1:C100,"John_Doe")

    but note that the column to be averaged is up front instead in this function...

  5. #5
    Registered User
    Join Date
    08-26-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Return list of values index/match

    That's it. Thanks again!

+ 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