+ Reply to Thread
Results 1 to 9 of 9

Help Using Concatenate with Index Match

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    new york, new york
    MS-Off Ver
    Excel 2013
    Posts
    76

    Help Using Concatenate with Index Match

    Hello, I am trying to combine the Index/Match functions with the Concatenate Function.

    I have two sheets (Sheet 1, Sheet 2). I want cell A1 in Sheet 1 to index and match a cell in Sheet 2. Sheet 2's name will change several times throughout the year, so I just want to be able to type the name of Sheet 2 into a cell B1 in Sheet 1 and have A1 reference that file name from the name in B1.


    The Index/Match formula is simple (and works) if the file name for Sheet 2 stayed static. In this example, A1 is a color. It will reference the cell in Sheet 2 that matches "Fruits" and return to me the item in the Items Column.
    INDEX('C:\Files\Spreadsheets\Sheet2.xls'!Items,MATCH($A$1,'C:\Files\Spreadsheets\Sheet2.xls'!Fruits,0))


    Since the name is not static, I need to use the concatenate function to type in the new year and month (displayed as 2013.10 for October 2013) that each file is saved by. The file name would be "List 2013.10.xls" Next month it would be "List 2013.11.xls"

    I came up with this formula but it is not working...can anyone tell me where I am going wrong?
    INDEX("'"&CONCATENATE("C:\Files\Spreadsheets\",B1,".xls")!Items, Match($A$1,("'"&CONCATENATE("C:\Files\Spreadsheets\",B1,".xls")!Fruits,0))

    In this, Cell B1 = "List 2013"

    Can anyone help me here??

    Thanks in advance

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help Using Concatenate with Index Match

    As far as I can tell from your formula, that's not what CONCATENATE is for.

    Perhaps if you could post an example workbook it would make it easier to provide a solution.

  3. #3
    Registered User
    Join Date
    08-29-2013
    Location
    new york, new york
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: Help Using Concatenate with Index Match

    Ive used this method with the PULL function before, so I know it can be done. I cant figure out how it can work with index and match though.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help Using Concatenate with Index Match

    If you're using the value in a cell to reference a worksheet then you should look into using =INDIRECT()

    Without an example worksheet, it's not clear what it is exactly you're trying to accomplish.

  5. #5
    Registered User
    Join Date
    08-29-2013
    Location
    new york, new york
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: Help Using Concatenate with Index Match

    OK I attempted to upload 2 sheets but they propbably wont work since they link to each other. One sheet is called Spreadsheet1 1.xlsx, and the other is called Tenants.xlsx.

    Tenants.xlsx is where call the information is kept, and will be the file that is referenced in Spreadsheet1.xlsx.

    Spreadsheet 1:
    Cell D3: Type of tenant I am looking for information about
    Cell D4: Company Name associated with type of tenant
    Cell D5: Contact Name for the company

    The Cells in D4 and D5 link to another spreadsheet called "Tenant.xlsx" where the information is kept.
    When I type in a type of tenant in D3, D4 and D5 will index and match the cells associated with that tenant.

    So if D3=Office
    D4 = corresponding Company Name for Office Tenant
    D5 = corresponding Contact name for Office Tenant

    If D3=Retail, same thing, just for retail tenant.

    That all works great, and is no problem. What I want to happen is the following.
    In the file called Spreadsheet 1, in Cell D1: I want to type the name of the corresponding excel file that the cells below will reference. So if:
    D1 = Tenants
    D4 and D5 should then link to an excel file called Tenants.xlsx

    If D1 = Tenants 2013, D4 and D5 would then link to an excel file called Tenants 2013.xlsx.

    Is that clearer?

  6. #6
    Registered User
    Join Date
    08-29-2013
    Location
    new york, new york
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: Help Using Concatenate with Index Match

    Forgot to upload the 2 files, here they are.
    Attached Files Attached Files

  7. #7
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help Using Concatenate with Index Match

    Link below to exactly this issue. Hopefully it will prove useful. Certainly explains the limitations of what you're trying to do what with Excel needing the other workbook to be open to work..

    http://www.excelforum.com/excel-form...-indirect.html

  8. #8
    Registered User
    Join Date
    08-29-2013
    Location
    new york, new york
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: Help Using Concatenate with Index Match

    I already tried indirect. It needs to work without the other sheet open. Again, I have performed this with the custom PULL function and it worked perfectly fine. No reason it shouldnt work for this.

    Here is the pull function I used.

    '=pull("'"&CONCATENATE("C:\Files\GCF\[",C23,".xlsx]Sheet1'!$N7"))/1000

    C23 was just the first part of the name of the file. So if I wrote Tenants 2013, it would pull from the filed called Tenants 2013.xlsx.

    I would just the PULL, but I need it index and match. Index and Match work with the workbook closed. Thats why I am trying to use those to work

    Thanks for your efforts
    Last edited by billyshears; 10-24-2013 at 03:32 PM.

  9. #9
    Registered User
    Join Date
    08-29-2013
    Location
    new york, new york
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: Help Using Concatenate with Index Match

    OK, I got halfway there using the following function:
    INDEX(pull("'"&CONCATENATE("C:\Files\Spreadsheets\[",C23,".xlsx]Sheet1'!Chart")),down,over)

    The weird thing I am having now is that the pull function works with a closed workbook, and the index function works with a closed workbook, but when I put them together it doesnt work with a closed workbook. Only works when it is open. Can anyone see a reason why it would do that?

+ 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] Index/Match Array with multiple results concatenate in one cell
    By samiesosa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2013, 01:34 PM
  2. [SOLVED] Index, Match and Concatenate
    By mmayna03 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-17-2012, 09:55 PM
  3. [SOLVED] INDEX-MATCH w/ CONCATENATE
    By zamgold in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-25-2012, 11:08 AM
  4. [SOLVED] Index/Match or sumproduct with concatenate
    By pauldaddyadams in forum Excel General
    Replies: 14
    Last Post: 04-18-2012, 12:30 AM
  5. Using INDEX MATCH to reference a cell that has a CONCATENATE
    By myshadeofglory in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2011, 01:40 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