+ Reply to Thread
Results 1 to 8 of 8

Average of matching data only

  1. #1
    Forum Contributor
    Join Date
    04-19-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    180

    Average of matching data only

    Hi

    Apologies if this has been answered before, I can't find the thread and not having any joy هn the net ....

    I am trying to find the average of matching candidates' scores only.

    On sheet1 I have a list of candidates. On sheet2 I have a selected candidate list from the Sheet1 list - this list can vary in length. There is no other data on sheet2 and I need to keep it that way.

    I am trying to find the average point score of the list of candidates on sheet2 by using a vlookup but am not getting the correct average score (which should be 51 but I am getting 76).

    I suspect there is more to just doing
    Please Login or Register  to view this content.
    . Am I supposed to be using the MATCH function here also?


    Sheet attached and help/pointers much appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,786

    Re: Average of matching data only

    Sheet3

    F7=SUMPRODUCT((ISNUMBER(MATCH(Sheet1!B3:B29,Sheet2!B3:B7,0)))*(Sheet1!E3:E29))/SUMPRODUCT(--(ISNUMBER(MATCH(Sheet1!B3:B29,Sheet2!B3:B7,0))))
    Last edited by CARACALLA; 10-19-2019 at 12:26 PM.

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Average of matching data only

    Hi

    You can try this array formula (enter with CTRL+SHIFT+ENTER)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    04-19-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Average of matching data only

    Thanks guys!
    Last edited by technik; 10-19-2019 at 01:46 PM.

  5. #5
    Forum Contributor
    Join Date
    04-19-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Average of matching data only

    Hi jose

    Just checking whether the array formula only works if the list on sheet2 is in consecutive order ie. grouped ? When it is grouped the formula works fine but if I was matching random candidates ie. candidate 1, candidate 6, candidate 10 etc. I seem to get the incorrect average ???

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Average of matching data only

    Hi @techenic

    It works for me.
    To test, in sheet1, I sort the table by column A and GROUP1. Now, the elements are not contiguous and the result is the same.
    Another test, after that, I change 'Jeffrey Johnston' by 'Pauline Medina' in sheet2 and the result is ok.
    See the file
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    04-19-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Average of matching data only

    That's brill - thanks again !

  8. #8
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Average of matching data only

    You are welcome.

    Thanks for the rep and feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 03-27-2019, 11:57 PM
  2. [SOLVED] Matching and removing matching data, and data filter with VBA (Excel 2003)
    By Ditch1983 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-18-2017, 04:41 PM
  3. Replies: 2
    Last Post: 04-18-2013, 05:56 PM
  4. Average incomes to matching towns.
    By markDuffy in forum Excel General
    Replies: 3
    Last Post: 08-29-2011, 09:57 AM
  5. Average incomes to matching towns.
    By markDuffy in forum Excel General
    Replies: 1
    Last Post: 08-29-2011, 07:18 AM
  6. Average a cell in a column if matching a set of criteria
    By Kosherboychief in forum Excel General
    Replies: 9
    Last Post: 05-31-2011, 12:17 PM
  7. Replies: 5
    Last Post: 04-05-2009, 08:28 PM

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