+ Reply to Thread
Results 1 to 8 of 8

An INDEX/MATCH function to retrieve vlaues from a table and AVERAGE them (arrays)

  1. #1
    Forum Contributor
    Join Date
    07-31-2008
    Location
    Berkshire, UK
    MS-Off Ver
    2003 & 2007
    Posts
    118

    An INDEX/MATCH function to retrieve vlaues from a table and AVERAGE them (arrays)

    Hi there. First of all I want to say thanks for all the help people on this forum have given me so far. I have learned so much and you are all wonderful.

    Now the problem I have.

    I have 2 sheets recording feedback and summarising the overall percentages for each trainer.

    My boss wants me to do this by month!?!?!

    I have created a third sheet but I am not sure how to do the following:
    • Look up the trainer name
    • Look up the month
    • identify the percentages for each category
    • create an overall average of these percentages

    So for example if Jon smith trained twice in JAN getting 100% and 50% in cat1, it would display 75% in the cat 1 cell and so on.

    I have attached the file.

    Once again thank you so much.

    Simon
    Attached Files Attached Files
    Last edited by simjambra; 03-26-2009 at 11:42 AM.

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

    Re: An INDEX/MATCH function to retrieve vlaues from a table and AVERAGE them (arrays)

    Try:

    =AVERAGE(IF(COUNTIF(trainer,$A4),IF(TEXT(date,"mmmm")='Monthly Summary'!$A$3,IF(trainer='Monthly Summary'!$A4,cat1),0)))

    in B4, which must be confirmed with CTRL+SHIFT+ENTER, not just ENTER

    and then copied down all the January names...

    You can copy formula across, but will have to adjust the cat1 to cat2, cat3, etc...

    If you copy formulas from B4:G4 to B32:G32, you will have to change the $A$3 to $A$31 to reference February...

    Repeat for all months.

    To hide 0 values, you can go to Tools|Options and from the View tab uncheck Zero Values.
    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
    Forum Contributor
    Join Date
    07-31-2008
    Location
    Berkshire, UK
    MS-Off Ver
    2003 & 2007
    Posts
    118

    Re: An INDEX/MATCH function to retrieve vlaues from a table and AVERAGE them (arrays)

    Thanks for the response.

    I haven't explained it too well originally.

    each category (cat1, cat2.. etc) is marked out of 4 for each delegate.

    so if a trainer had 2 delegates and the category was cat1. The trainer got 6 marks, that would be the cat1/(delegates*4) and the anwer would be 75%

    I then need to perform an average.

    This is so confusing!

    Thank you again for your help

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

    Re: An INDEX/MATCH function to retrieve vlaues from a table and AVERAGE them (arrays)

    This is so confusing!
    You bet.

    You are going to have to try again, with more examples and how you get those numbers.

  5. #5
    Forum Contributor
    Join Date
    07-31-2008
    Location
    Berkshire, UK
    MS-Off Ver
    2003 & 2007
    Posts
    118

    Re: An INDEX/MATCH function to retrieve vlaues from a table and AVERAGE them (arrays)

    Ok I have updated the spreadsheet with an example and hopefully a more concise explanation.

    Thanks

    Simon
    Attached Files Attached Files

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

    Re: An INDEX/MATCH function to retrieve vlaues from a table and AVERAGE them (arrays)

    Try this in B4:

    Please Login or Register  to view this content.

    confirmed with CTRL+SHIFT+ENTER
    not just ENTER and copied down for January...

    you will need do the the appropriate adjustments as outlined before for the different cats and different months...

  7. #7
    Forum Contributor
    Join Date
    07-31-2008
    Location
    Berkshire, UK
    MS-Off Ver
    2003 & 2007
    Posts
    118

    Re: An INDEX/MATCH function to retrieve vlaues from a table and AVERAGE them (arrays)

    That seems to work great. Thanks very much. Even removing the zeros, I still get a div/0 error but I gues that is to do with the CSE formula. To be honest, I'm not really bothered about those as long as the formula works.

    Thanks mate

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

    Re: An INDEX/MATCH function to retrieve vlaues from a table and AVERAGE them (arrays)

    not sure exactly what you mean, but if you mean that the delegates are all zeros

    Please Login or Register  to view this content.
    or if the cat1 are all 0's

    Please Login or Register  to view this content.
    or post what you mean so that I can see and possibly avoid that error....

+ 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