+ Reply to Thread
Results 1 to 4 of 4

Use a cell value in a address link

  1. #1
    Registered User
    Join Date
    03-09-2009
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Use a cell value in a address link

    I wasn't actually sure what to title this issue. What I have is a summary worksheet with two columns. One column is for Project ID number and the other is an address link to a specific cell in the worksheet corresponding to the Project ID. Perhaps the best way to explain this is by giving an example:

    Project ID (Column 1)
    00-111

    Balance (Column 2)
    ='C:\Financial Sheets\[00-111.xlsx]Phase_21'!$H$1

    As you can see the spreadsheets are named after the Project ID number. What I would like to do, if possible, is instead of typing in the name of the spreadsheet for each project in column 2 (Balance), I could somehow reference the cell value in column 1 (Project ID). Something like this:

    Project ID (Column 1)
    00-111

    Balance (Column 2)
    ='C:\Financial Sheets\["A2".xlsx]Phase_21'!$H$1

    where A2 is the cell of the Project ID.

    If this is a possibility, would the cell value change when I drag copy the cell (for example would it change from A2 to A3)?

    Any advice is much appreciated.

    Thanks in advance,

    Jeremy
    Last edited by JDiFilippo; 03-09-2009 at 02:16 PM.

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

    Re: Use a cell value in a address link

    Since you are dealing with workbooks that are probably not going to be open... then I would suggest you download a free adding called Morefunc.xll from here:
    Morefunc.xll

    and use Indirect.Ext() function.

    e.g.
    =INDIRECT.EXT("'C:\Financial Sheets\["&A2&".xlsx]Phase_21'!$H$1")
    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.

  3. #3
    Registered User
    Join Date
    03-09-2009
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Use a cell value in a address link

    Thank you for your prompt reply, NBVC. That's exactly what I needed. I find it odd that Microsoft didn't implement this function into Excel. You've saved me probably 4 hours worth of work and many more future heartaches when some of my co-workers who are not as computer literate start to use this worksheet.

    Once again thank you.

    Jeremy

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

    Re: Use a cell value in a address link

    Microsoft has the INDIRECT() function but only works on open workbooks or within the workbook itself.

    Also note, that the Morefunc.xll addin allows you to embed the function into the workbook so that other users don't have to install the addin to use the workbook.

    Check under Tools|Morefunc|Embed Morefunc in the workbook.

+ 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