+ Reply to Thread
Results 1 to 14 of 14

INDEX/MATCH using two files

  1. #1
    Registered User
    Join Date
    07-27-2017
    Location
    STL,US
    MS-Off Ver
    2013
    Posts
    7

    INDEX/MATCH using two files

    Just found this forum, and glad it exist.

    I'm very new at this level of Excel (a few days), so forgive me if I have written this incorrectly.
    Task:
    Type a alphanumeric code in cell 'F11' on (Sample Workbook 1.xlsx) then find the same alphanumeric code in file (Sample Workbook 2 Project-Wide.xlsx) column U, then return only the alphanumeric code if it begins with "M" in column C.

    My argument:
    =INDEX('C:\Formulas\[Sample Workbook 2 Project-Wide1.xlsx]COMP'!$C:$C,MATCH(F11,'C:\Formulas\[Sample Workbook 2 Project-Wide1.xlsx]COMP'!$U:$U,0))

    Sample Files:
    Attached
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: VERY new at this. INDEX - MATCH, using two files.

    Your sample workbook 2 project-wide not open. Kindly reattach proper file.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: INDEX/MATCH using two files

    Hi and welcome to this forum.
    Firstly, why did you give the second attachment the extension "xlsx" while it has a macro in it and should be "xlsm"?
    That's why it's not opening.

    In Sample Workbook 1.xlsx:
    - Select cell F11 and add a Named Range with this formula and name it TagName:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This will do the lookup
    - In cell F11 than enter this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This will do the selection and cuts off the numeric part of the found code.
    The formula refers to the named range which makes it more readable.

    Do notice that the workbook the lookup is done in needs to be opened.
    There are methods to access unopened workbooks in Excel 2016, not sure if they are available in Excel 2013
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  4. #4
    Registered User
    Join Date
    07-27-2017
    Location
    STL,US
    MS-Off Ver
    2013
    Posts
    7

    Re: VERY new at this. INDEX - MATCH, using two files.

    Sorry for uploading a bad file.
    This should work.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-27-2017
    Location
    STL,US
    MS-Off Ver
    2013
    Posts
    7

    Re: INDEX/MATCH using two files

    Thanks, I'll try it 'Asap' when I'm back in the office.

  6. #6
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: INDEX/MATCH using two files

    Noticed an error in my response. You should not put the formula in F11 as that hold the search value already.
    While testing I've put it in G11. But that can be any other cell as long as it's on the same row as the named formula is referring to.
    Last edited by Tsjallie; 07-28-2017 at 08:00 AM.

  7. #7
    Registered User
    Join Date
    07-27-2017
    Location
    STL,US
    MS-Off Ver
    2013
    Posts
    7

    Re: INDEX/MATCH using two files

    Tsjallie; I'm substituting 'F11' with 'E11'. You mentioned, "Add a Named Range and name it TagName", I'm not sure what cell to add the named range?
    I added the 'Index' statement to cell E11, but where do I add the 'IF' statement? Or do I combine with the 'Index Match' statement?
    Thank you for your help.

  8. #8
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: INDEX/MATCH using two files

    A Named Range is entered in the Name Manager. This how:
    • Make sure a cell in row 11 is selected. This is because the formula in the Named Range is referring to the cell in column F and row 11.
    • Select the Formula tab in the ribbon and in there select Name Manager.
    • In the Name Manager select New and enter "TagName" as the Name and in the Refers to box enter this formula:
      Formula: copy to clipboard
      Please Login or Register  to view this content.
      I used the second workbook you uploaded, so workbook name and sheet name differ from the formula I posted earlier.
    • Now select cell E11 and enter this formula there:
      Formula: copy to clipboard
      Please Login or Register  to view this content.
    Last edited by Tsjallie; 07-28-2017 at 03:18 PM.

  9. #9
    Registered User
    Join Date
    07-27-2017
    Location
    STL,US
    MS-Off Ver
    2013
    Posts
    7

    Re: INDEX/MATCH using two files

    Thank you, I understand now.
    I tried it, but 'E11' will only return back the letter 'M', no other characters.

    This is the closest I've seen it work yet, thanks. What should I change in the 'IF' statement?

  10. #10
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: INDEX/MATCH using two files

    It's only showing "M" because the found tagname has just "M" as it's character part.
    No need to change the IF-statement.

  11. #11
    Registered User
    Join Date
    07-27-2017
    Location
    STL,US
    MS-Off Ver
    2013
    Posts
    7

    Re: INDEX/MATCH using two files

    Quote Originally Posted by Tsjallie View Post
    It's only showing "M" because the found tagname has just "M" as it's character part.
    No need to change the IF-statement.
    Ok, so is there a way to get the rest of the information to the right of 'M' to show in each cell?

  12. #12
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: INDEX/MATCH using two files

    is there a way to get the rest of the information to the right of 'M' to show in each cell?
    You can remove the Substitute-part from the formula in E11
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This will return the whole tagname.

    BTW I noticed that there are multiple tagnames associated withNCS150 and there all different.
    Need to do something about that?

  13. #13
    Registered User
    Join Date
    07-27-2017
    Location
    STL,US
    MS-Off Ver
    2013
    Posts
    7

    Re: INDEX/MATCH using two files

    Perfect...it works! Thanks Tsjallie

  14. #14
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: INDEX/MATCH using two files

    Glad I could help.
    Thx for the rep

+ 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. index-match between two huge files
    By is2_egypt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-15-2016, 09:59 AM
  2. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  3. [SOLVED] Index Match Issue linked with Other files
    By Fletch74 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-27-2015, 10:28 PM
  4. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  5. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  6. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  7. Index/Match from 2 sources of files
    By rickyilas in forum Excel General
    Replies: 1
    Last Post: 06-26-2012, 05:49 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