+ Reply to Thread
Results 1 to 13 of 13

Multiple Matches Cross Referencing Multiple Tables

  1. #1
    Forum Contributor
    Join Date
    04-16-2020
    Location
    Alberta, Canada
    MS-Off Ver
    365
    Posts
    216

    Multiple Matches Cross Referencing Multiple Tables

    updated for clarity: hopefully

    Based on D23 & D24, I need to find:

    M53 = TempLow = value lower or equal to D23, but is located next to the "Table" in D24 ( if D23 = CS-1 & D24 = 405... M53 = 300 ....but if D23 = HA-1 & D24 = 405, M53=500)

    M54 = TempHigh = value higher or equal to D23, but is located next to the "Table" in D24 ( if D23 = CS-1 & D24 = 405... M53 = 400 ....but if D23 = HA-1 & D24 = 405, M53=700)

    and so on..

    ** the library might open but be hidden.
    Attached Files Attached Files
    Last edited by FDibbins; 06-10-2020 at 02:14 PM.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: INDIRECT lookups with MATCH and INDEX

    You can't use Indirect on another workbook when it's closed. INDIRECT only works on open workbook.

    Personally, I'd just use PowerQuery to load data from source into Shell workbook, passing D23 as variable/parameter to PowerQuery to select the table.
    Then using D24 to return pertinent data.

    Though I'd recommend setting up each table as Excel Table and/or separating it out into separate sheets in Library workbook.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Contributor
    Join Date
    04-16-2020
    Location
    Alberta, Canada
    MS-Off Ver
    365
    Posts
    216

    Re: INDIRECT lookups with MATCH and INDEX

    I did think of a possible way around it... but I'd like to get the indirect working if possible.

    my work around would just be putting all the tables in the same columns and adding a column for the table name.. then i look up the table name, in the column and A and then find B.. like i do for M56 and a few other cells.

  4. #4
    Forum Contributor
    Join Date
    04-16-2020
    Location
    Alberta, Canada
    MS-Off Ver
    365
    Posts
    216

    Re: INDIRECT lookups with MATCH and INDEX

    The work book is always open in the background.

    I'm not familiar with PowerQuery

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: INDIRECT lookups with MATCH and INDEX

    Can you upload sample that reflects your proposed set up?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: INDIRECT lookups with MATCH and INDEX

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Contributor
    Join Date
    04-16-2020
    Location
    Alberta, Canada
    MS-Off Ver
    365
    Posts
    216

    Re: MATCH multiple criteria

    I updated my first post and added updated tables and calc sheet.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,762

    Re: MATCH multiple criteria

    I think you've made it worse! Try this: "Multiple Matches Cross Referencing Multiple Tables".
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: MATCH multiple criteria

    Quote Originally Posted by Cobra17 View Post
    I updated my first post and added updated tables and calc sheet.
    Thanks for the effort, however, a title needs to explain (briefly) what you are trying to do, not what you think may work. I understand that you think MATCH would be involved - and maybe it will, but let the experts decide what you need to use
    Hope that makes sense to you?

  10. #10
    Forum Contributor
    Join Date
    04-16-2020
    Location
    Alberta, Canada
    MS-Off Ver
    365
    Posts
    216

    Re: Multiple Matches

    maybe i made it better... maybe not.

    It's hard to explain something when you've been focused on it and it makes sense to yourself... and i'm not super great with excel to start with.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Multiple Matches Cross Referencing Multiple Tables

    Yes I understand that totally lol (Ali suggested a title, so I changed it to that for you )

  12. #12
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Multiple Matches Cross Referencing Multiple Tables

    Hmm, with your current setup. Provided that you have Library workbook open...

    You can leverage named range in the Library workbook. Make sure that all Named ranges referenced in this manner is set to Workbook scope.
    In M54:
    =INDEX(INDEX(INDIRECT("'BDD Library.xlsm'!" & M53),0,1),MATCH(D24,INDEX(INDIRECT("'BDD Library.xlsm'!" & M53),0,1),1))

    EDIT: Internal INDEX is used to return all rows for column 1 of named range. row or column argument value of 0 in index function will return either all row or column.

  13. #13
    Forum Contributor
    Join Date
    04-16-2020
    Location
    Alberta, Canada
    MS-Off Ver
    365
    Posts
    216

    Re: Multiple Matches Cross Referencing Multiple Tables

    CK76, That's how I'd like to do it. I tried putting in your code but I can't seem to get it working.


    I'm assuming:
    M53 is the table name
    D24 is the temperature i'm looking for


    i figured out why... i was using a temp lower than on my chart and didn't have anything to say use the lowest temp then.
    Last edited by Cobra17; 06-15-2020 at 10:26 AM.

+ 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] Using INDEX & MATCH for date lookups?
    By y_not in forum Excel General
    Replies: 1
    Last Post: 06-27-2018, 06:58 AM
  2. Index Match Match - 2 x Vertical Lookups - Not working as it should
    By seash in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2016, 09:58 AM
  3. v lookups index and match if error help
    By zaid999 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2016, 04:47 PM
  4. Index, Match and lookups explained (hopefully)
    By Michael in Nanchang in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-04-2015, 02:10 AM
  5. Index and Match where one of the lookups needs to be nearest to
    By Alkaline198 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-21-2014, 04:35 PM
  6. INDEX and MATCH with range LOOKUPs?
    By neilbomb in forum Excel General
    Replies: 9
    Last Post: 06-22-2010, 07:33 PM
  7. Lookups Match Index??
    By myheadhurts in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-31-2008, 03:27 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