+ Reply to Thread
Results 1 to 24 of 24

Index Match Match for a small table lookup

  1. #1
    Registered User
    Join Date
    08-15-2018
    Location
    leicester, england
    MS-Off Ver
    office 365
    Posts
    17

    Index Match Match for a small table lookup

    Hi Iv got a small table (Example below) i need to reference but the values i need to reference change based on the criteria i need to find, i can search using a if and but its too long as i need to look between 8 tables.

    the index match match formula iv used retuns the top row of upper, lower, middle or and error only see formula below

    =INDEX(AM2:AP8,MATCH(AW5,AM3:AP8,0),MATCH(AW6,AN2:AP8,0))


    Exercise:
    Category Lower Middle Upper
    Absolute Strength 0.34 - 0.28 0.28 - 0.22 0.22 - 0.16
    Circa Max Strength 0.44 - 0.41 0.41 - 0.38 0.38 - 0.35
    Accelerative Strength 0.75 - 0.65 0.65 - 0.55 0.55 - 0.45
    Strength-Speed 1 - 0.92 0.92 - 0.84 0.84 - 0.76
    Speed-Strength 1.29 - 1.2 1.2 - 1.11 1.11 - 1.01
    Starting Strength 0 - 0 0 - 0 0 - 0


    Hope this helps

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match Match for a small table lookup

    Can you give us an example of what would be in cells AW5 and AW6 along with the desired result based on that example?

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match Match for a small table lookup

    It's probably going to be one of these:

    =INDEX(AN2:AP7,MATCH(AW5,AM2:AM7,0),MATCH(AW6,AN1:AP1,0))
    if AW6 is one of the values in AN2:AP7

    or

    =INDEX(AN1:AP1,MATCH(AW6,INDEX(AN2:AP7,MATCH(AW5,AM2:AM7,0),),0))
    if AW6 is one of the values in AN1:AP1 (Lower, Middle, or Upper)

    Edit: Other way around...
    Last edited by 63falcondude; 08-30-2018 at 01:01 PM.

  4. #4
    Registered User
    Join Date
    08-15-2018
    Location
    leicester, england
    MS-Off Ver
    office 365
    Posts
    17

    Re: Index Match Match for a small table lookup

    AW5 would give you the information down the left hand side (Absolute strenght, circa max strength etc)
    aw6 would be the upper, middle or lower row

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match Match for a small table lookup

    Then try the second formula from post #3

  6. #6
    Registered User
    Join Date
    08-15-2018
    Location
    leicester, england
    MS-Off Ver
    office 365
    Posts
    17

    Re: Index Match Match for a small table lookup

    Tried the second formula, it retuned a #N/A error

    if attached an image of the sheet Screen Shot 2018-08-30 at 17.54.38.png

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match Match for a small table lookup

    Whoops. I meant the first formula...

  8. #8
    Registered User
    Join Date
    08-15-2018
    Location
    leicester, england
    MS-Off Ver
    office 365
    Posts
    17

    Re: Index Match Match for a small table lookup

    Still shows the #N/A error with the first formula

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match Match for a small table lookup

    It works on my end. See attachment.

    If you upload the workbook, or a small representative sample of it, we can take a look at why it isn't working for you.
    Attached Files Attached Files

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match Match for a small table lookup

    I think I see what happened. Your data doesn't start until row 3.

    Try this:

    =INDEX(AN3:AP8,MATCH(AW5,AM3:AM8,0),MATCH(AW6,AN2:AP2,0))

  11. #11
    Registered User
    Join Date
    08-15-2018
    Location
    leicester, england
    MS-Off Ver
    office 365
    Posts
    17

    Re: Index Match Match for a small table lookup

    thank you i will try this one

  12. #12
    Registered User
    Join Date
    08-15-2018
    Location
    leicester, england
    MS-Off Ver
    office 365
    Posts
    17

    Re: Index Match Match for a small table lookup

    Iv tried the formula and it still showing an error could be my version of excel

  13. #13
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match Match for a small table lookup

    Maybe you have an extra space somewhere. I'll take a look once you upload a sample workbook (not picture).

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  14. #14
    Registered User
    Join Date
    08-15-2018
    Location
    leicester, england
    MS-Off Ver
    office 365
    Posts
    17

    Re: Index Match Match for a small table lookup

    please see attached file, hope it make sense
    Attached Files Attached Files

  15. #15
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match Match for a small table lookup

    There is a space after the word Middle. Looks like this is the case everywhere in the workbook.

    Delete those trailing spaces and you should be good to go.

  16. #16
    Registered User
    Join Date
    08-15-2018
    Location
    leicester, england
    MS-Off Ver
    office 365
    Posts
    17

    Re: Index Match Match for a small table lookup

    thank you ill give it a go

  17. #17
    Registered User
    Join Date
    08-15-2018
    Location
    leicester, england
    MS-Off Ver
    office 365
    Posts
    17

    Re: Index Match Match for a small table lookup

    Hi, Ive tried removing the space after middle but no luck with the fomula, iv attached the whole if thats any help at all
    Attached Files Attached Files

  18. #18
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Index Match Match for a small table lookup

    slvrbktom, I have another approach in mind, but I have a question first. You state 8 tables and the upload reflects that. However I find 9 unique exercises. Which of those apply to the 8 tables?



    Squat
    Overhead Press
    Deadlift
    Bench Press
    Accessory
    Glute Bridge
    DB RDL
    Skull Crushers
    McGill Big 3
    Dave

  19. #19
    Registered User
    Join Date
    08-15-2018
    Location
    leicester, england
    MS-Off Ver
    office 365
    Posts
    17

    Re: Index Match Match for a small table lookup

    The cells you are referring to are related to another sheet which contains a list of exercises.

    in Column B there are drop down boxes where a "Master" exercise can be selected which will relate to one of the smaller tables further across the sheet that will contain the data that is needed


    hope this makes sense

  20. #20
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Index Match Match for a small table lookup

    If each of the tables had their exercise in the header like AN1 "Squat" I could show what I mean.

    The reason I ask there is a seldom used optional 4th argument in INDEX area_num. It works well in situations like this. With 8 tables the setup is lightly tedious, but once it's done it's done. I doesn't need maintenance.

    The drop downs in the upload don't give a clue concerning exercises except that they reference another source not included.

    I could make up a list and demo file if you'd like.

    Let me know.

  21. #21
    Registered User
    Join Date
    08-15-2018
    Location
    leicester, england
    MS-Off Ver
    office 365
    Posts
    17

    Re: Index Match Match for a small table lookup

    if you could and dont mind that would be great

  22. #22
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Index Match Match for a small table lookup

    I'll attempt to describe how this works. You may want to have the attached open. It could help in following this wall of text. As stated above the setup is a little tedious, but once completed should be maintenance free.

    The help file explains two syntax forms of INDEX. They are the Array form and the Reference form. The attached uses the Reference form.
    It is:

    INDEX(reference, row_num, [column_num], [area_num])

    Before beginning find this named rang definition table in the attached BF1:BG4


    Exer_Tables
    =Training_Plan!$AN$3:$AP$8,Training_Plan!$AS$3:$AU$8,Training_Plan!$AN$12:$AP$17,Training_Plan!$AS$12:$AU$17,Training_Plan!$AN$21:$AP$26,Training_Plan!$AS$21:$AU$26,Training_Plan!$AN$30:$AP$35,Training_Plan!$AS$30:$AU$35
    Exer_Name
    =Training_Plan!$AZ$1:$AZ$8
    Exer_Category
    =Training_Plan!$BA$1:$BA$6
    Exer_Target
    =Training_Plan!$BB$1:$BB$3


    Take note of Exer_Tables and its non contiguous range. It will be the first argument in INDEX. Each section in the definition must be separated by a comma. These are the areas and INDEX understands them to be numbered left to right 1 to 8. They are returned by a MATCH function in the area_num argument. Establishing the order of the area_nums is the most tedious step. With Name Manager open simply select the first section, followed by a comma, select the next section, followed by a comma ... repeat and rinse. I did it selecting tables left to right and then down, left to right and down ... etc. etc.

    It is good that you have consistency in the row and column headers of each table. This means that no matter what area_num (and therefore exercise/table) is the active area_num all row and column arguments passed to INDEX will apply to and only apply to the current area_num.

    Please also take note that the area_nums/Exercises are in exactly the same order as Exer_Names in AZ1:AZ8. Exer_Names serves as the DV list for the drop downs and the lookup_array in the area_num MATCH function. The matching order assures MATCH will return the correct Table.

    The rest of the definitions also serve as DV lists for the remaining drop downs and as lookup_array arguments for the remaining MATCH function calls.

    The final formula in B18:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Copy that cell and paste into cells B21, B24, B27 ... etc.

    I put some fake data into the remaining seven tables so you can experiment and confirm that this works properly.

    Does this do what you hoped for?

  23. #23
    Registered User
    Join Date
    08-15-2018
    Location
    leicester, england
    MS-Off Ver
    office 365
    Posts
    17

    Re: Index Match Match for a small table lookup

    Wow this is amazing! way way beyond my skills!


    thank you so much its exactly what i was trying to achieve

  24. #24
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Index Match Match for a small table lookup

    You are welcome. Glad it does the job. Thank you for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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: 3
    Last Post: 10-28-2015, 09:54 AM
  2. Table Lookup/Index Match Help
    By mustangsally in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-21-2015, 06:29 PM
  3. [SOLVED] Using Index match and small to come up with different results from same lookup
    By sirbletchley in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-19-2015, 07:37 PM
  4. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  5. problems using SMALL and INDEX(MATCH) in a table
    By lookingforhelp2014 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-16-2014, 11:12 AM
  6. [SOLVED] INDEX MATCH SMALL ROW, Double criteria Lookup
    By GP_SRT in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-22-2013, 11:15 AM
  7. Duplicate values returned using Index Match Lookup with Small()
    By jacob@thepenpoint in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-18-2013, 10:48 AM

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