+ Reply to Thread
Results 1 to 18 of 18

Average of an Index(match) combo

  1. #1
    Registered User
    Join Date
    03-01-2010
    Location
    Shepherdstown, WV
    MS-Off Ver
    Excel 365
    Posts
    15

    Average of an Index(match) combo

    excel image.png

    So I am attempting to use my current formula to cross reference a name and two different values from the same table (statleader) and then average them.


    =AVERAGE(INDEX(statleader,MATCH(N50,$B$48:$B$65,0),MATCH(K50:L50,$B$48:$H$48,0)))
    As you can see I am getting a #VALUE! error
    Attached Images Attached Images
    Last edited by mistrornge; 02-21-2023 at 12:14 PM. Reason: screwed up the image

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,692

    Re: Average of an Index(match) combo

    Please update your version of Excel in your profile. I'm guessing your not still uing 2003.

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.

    Typically, INDEX/MATCH will return one ( 1 ) value, so not sure how you hope to get an average.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-01-2010
    Location
    Shepherdstown, WV
    MS-Off Ver
    Excel 365
    Posts
    15

    Re: Average of an Index(match) combo

    I am using Excel in 365. Updated my account with the new info.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,692

    Re: Average of an Index(match) combo

    I am using Excel in 365.
    That should make life easier. Please upload a sample file, not a picture.


    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.

  5. #5
    Registered User
    Join Date
    03-01-2010
    Location
    Shepherdstown, WV
    MS-Off Ver
    Excel 365
    Posts
    15

    Re: Average of an Index(match) combo

    Index(Match) being a single number is what I was afraid of.

    Updated this post with the actual .xlsx file.
    Thanks for your help.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-01-2010
    Location
    Shepherdstown, WV
    MS-Off Ver
    Excel 365
    Posts
    15

    Re: Average of an Index(match) combo

    Added Paypal payment to encourage assistance.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,692

    Re: Average of an Index(match) combo

    Is this what you want in M50:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied down.

    You can also use this for ALL the rows:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    NOT copied down.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,692

    Re: Average of an Index(match) combo

    Incidentally, you CAN do it with INDEX/MATCH, just not the way you were trying to do it.
    M50:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied down

    Or, for all rows:
    M50:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    NOT copied down

    Obviously, 365 gives you FILTER, BYROW and LAMBDA

  9. #9
    Registered User
    Join Date
    03-01-2010
    Location
    Shepherdstown, WV
    MS-Off Ver
    Excel 365
    Posts
    15

    Re: Average of an Index(match) combo

    I haven’t had any experience with those commands yet. I will try your suggestions tomorrow when I have the sheet in front of me.

  10. #10
    Registered User
    Join Date
    03-01-2010
    Location
    Shepherdstown, WV
    MS-Off Ver
    Excel 365
    Posts
    15

    Re: Average of an Index(match) combo

    Ok my results from trying out the formulas:
    =AVERAGE(FILTER($C$49:$H$65,$B$49:$B$65=$N50,"")) says function not valid? The filter function is highlighted as the error.
    =BYROW($N50:$N56, LAMBDA(br, AVERAGE(FILTER($C$49:$H$65,$B$49:$B$65=br,"")))) says function not valid? The filter function is highlighted as the error.
    =AVERAGE(INDEX($C$49:$H$65,MATCH($N50,$B$49:$B$65,0),0)) gives an answer of 1.5 for every row. Linzi should be 2.5, Amiri should also be giving 2.5, Valerie 0.5, Harrim 0, Jubilost 2.5, Octavia 3.5, & Ekundayo 3
    =BYROW(N50:N56, LAMBDA(br, AVERAGE(INDEX($C$49:$H$65,MATCH(br,$B$49:$B$65,0),0)))) this one get the #NAME? error

    To test everything I put the formulas into M50 and with the + pull down added the formula to the over cells in the M column. I did this just to test with the formulas you had said to not copy down in case there was one row that got an answer. I also tried the byrow with the spaces and without the extra spaces. Just in case.
    I hope I am following directions properly.
    Thank you for your help!

  11. #11
    Registered User
    Join Date
    03-01-2010
    Location
    Shepherdstown, WV
    MS-Off Ver
    Excel 365
    Posts
    15

    Re: Average of an Index(match) combo

    This is a difficult problem as it has to correlate which stat from columns K & L, then from the N column properly select the corresponding leader and then from B column with the proper stats from row 48. Its a lot to expect. I may be asking more than is possible with excel.

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,673

    Re: Average of an Index(match) combo

    Try the following in M50 and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  13. #13
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,861

    Re: Average of an Index(match) combo

    If you are on 365, you should have the FILTER formula.

    Try this in cell M50 and copy down.

    =AVERAGE(FILTER(FILTER($C$49:$H$65,($C$48:$H$48=K50)+($C$48:$H$48=L50)),($B$49:$B$65=N50)))

  14. #14
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,498

    Re: Average of an Index(match) combo

    Cell O50 formula , Drag down

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

  15. #15
    Registered User
    Join Date
    03-01-2010
    Location
    Shepherdstown, WV
    MS-Off Ver
    Excel 365
    Posts
    15

    Re: Average of an Index(match) combo

    Sorry I missed these answers. I will try them out. Thanks guys.

    All work as listed. Is there a way to have them round down? If I open the spreadsheet in another excel version will some of these fail to work?
    Last edited by mistrornge; 03-06-2023 at 11:25 AM. Reason: added a question

  16. #16
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,673

    Re: Average of an Index(match) combo

    I believe that the Formula that contains the FILTER function will only work for the 365 version, although the 2021 version may also support FILTER.
    The other formulas contain functions that are supported at least as far back as the 2003 version.
    As to rounding down, the formula from post #12 could be modified to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  17. #17
    Registered User
    Join Date
    03-01-2010
    Location
    Shepherdstown, WV
    MS-Off Ver
    Excel 365
    Posts
    15

    Re: Average of an Index(match) combo

    You guys rock. Thank you

  18. #18
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,673

    Re: Average of an Index(match) combo

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. [SOLVED] combo - sumif/index/match
    By moe32 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2019, 01:37 PM
  2. not sure if vlookup+Index+match combo can be used?
    By vloomz in forum Excel General
    Replies: 1
    Last Post: 07-26-2018, 12:32 AM
  3. [SOLVED] INDEX/MATCH combo with using nth result
    By Hearny in forum Excel General
    Replies: 10
    Last Post: 03-16-2018, 06:13 PM
  4. [SOLVED] Index Match Combo
    By SimonCampbell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-19-2017, 06:25 AM
  5. Index, Match, If / And, Combo Box used in Conjunction??
    By childs71 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-07-2015, 08:35 AM
  6. Three Way Lookup Using Index Match Combo
    By nathanhamilton82 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-07-2012, 03:39 PM
  7. Lookup, Index, Match ... Not sure which combo will do it?
    By nikko4239 in forum Excel General
    Replies: 4
    Last Post: 06-08-2010, 06:32 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