+ Reply to Thread
Results 1 to 5 of 5

Using "indirect" and "concatenate" to reference across workbooks.

  1. #1
    Registered User
    Join Date
    08-03-2009
    Location
    NY, NY
    MS-Off Ver
    Excel 2003
    Posts
    60

    Using "indirect" and "concatenate" to reference across workbooks.

    I am attempting to use "concatenate" and "indirect" to reference a cell in a different workbook, but am not having any luck.

    In this example, an employee is interested in looking at job "999.123", and thus enters that number into the first cell. The file itself is saved as "999.123.xlsx", so when they enter "999.123" into the first cell, it should combine with the beginning and ending of the file-path listed - I can get it to link when I copy & paste the concatenated value into another cell, but I can't get it to work on its own.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Using "indirect" and "concatenate" to reference across workbooks.

    Hi,

    use something like

    =INDIRECT(C3&C2&C4)

    You don't need to start C3 with =
    The indirect function already starts with the required = sign. But you may want to experiment with an additional ' at the beginning of C3.
    Also, while you're testing, try the formula with the target workbook open. This may yield better results than if it is closed.

    Use the Evaluate Formula functionality to see how your string gets put together step by step and is finally converted to a reference. This will help find errors.

    cheers

  3. #3
    Registered User
    Join Date
    08-03-2009
    Location
    NY, NY
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Using "indirect" and "concatenate" to reference across workbooks.

    Thanks for the reply, but it's still not working - I've been trying to get this for over a month, but I just can't figure it out.

    Thanks for trying, though.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Using "indirect" and "concatenate" to reference across workbooks.

    Quote Originally Posted by teylyn
    Also, while you're testing, try the formula with the target workbook open. This may yield better results than if it is closed.
    just to clear INDIRECT will only work with open targets, for closed targets see Laurent Longre's morefunc.xll add-in and specifically the INDIRECT.EXT function.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using "indirect" and "concatenate" to reference across workbooks.

    It probably should be:

    =INDIRECT("'\\Rehabserver\Company Shared Documents\ACT\Document\1 - PROJECT SUMMARIES\Reports\2010 Active\["&C2&".xlsx]Summary'!$F$16")

    but note... this only works with open workbooks..

    you will need an outside method such as using Morefunc.xll addin and INDIRECT.EXT to get it to work with closed workbook.

    Morefunc.xll
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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