+ Reply to Thread
Results 1 to 5 of 5

Reference external workbook cell value in active workbook using an identifier number

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Reference external workbook cell value in active workbook using an identifier number

    Hi everyone,

    Cell A1 has an indentifier number. This identifier number corresponds to a .xls/xlsx file with the same name in C:/stuff folder. I.e. the identifer number is RRR11, the external workbook is RRR11.xlsx

    What I'm trying to do is have cell C2 in the active workbook populate with the value in cell C2 of the external workbook named using the same identifier number as in cell A1 of the active workbook. The result is that I want to pull the value from a specific cell in the external workbook, say D2, and put that value in the active workbook D2 cell.

    The external workbook will not be open, so I don't think INDIRECT will work. Any ideas?

    Thanks everyone!!
    Last edited by Groovicles; 11-28-2013 at 03:42 PM.

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Reference external workbook cell value in active workbook using an identifier number

    Try INDIRECT EXT.
    from MoreFunc
    http://excelenthusiasts.sharepoint.c...s/Morefunc.zip
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Re: Reference external workbook cell value in active workbook using an identifier number

    Hi Robert,

    Is this program the only way I can have the filename in the file path adjust based on the value of a cell in the active workbook? That's all I'm really trying to do at this point, something like this:

    =vlookup(a1,'c:/stuff/"&B1&".xlsx'!$E:$Z,3,False)

    B1 = the identifier number which is also the filename.

    Any thoughts?

  4. #4
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Reference external workbook cell value in active workbook using an identifier number

    Could you post an example?

  5. #5
    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,926

    Re: Reference external workbook cell value in active workbook using an identifier number

    If you are trying to use referenced text to be part of a formula, then, without using VBA, INDIRECT() is pretty much the only way to do that. And, as INDIRECT() does not work on closed workbooks, Robert's suggestion is the way to go
    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

+ 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: 0
    Last Post: 09-23-2013, 05:59 PM
  2. [SOLVED] Writing cell reference to external workbook with VBA
    By knutfh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2013, 06:58 AM
  3. [SOLVED] copy active sheet, create new workbook, name new workbook based on cell reference
    By jm0392 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2012, 07:12 PM
  4. Replies: 2
    Last Post: 05-01-2009, 07:06 PM
  5. How to pass active workbook to external DLL?
    By MarkDev in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-13-2006, 10:25 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