+ Reply to Thread
Results 1 to 3 of 3

Dynamically referencing file in concatenate

  1. #1
    Registered User
    Join Date
    10-05-2010
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    2

    Dynamically referencing file in concatenate

    I am trying to use a concatenate statement that is currently working fine, but i would like to have the capability for dynamic changes in columns

    =CONCATENATE('http://internet.com/workload/Spreadsheets/Team/[John Smith.xls]John Smith!G109," : ",'http://internet.com/

    Instead of hard coding the name into the statement, i would like it to read whatever name i place in the cell

    =CONCATENATE('http://internet.com/workload/
    Spreadsheets/Team/[(C2).xls] ," : ",'http://internet.com/

    That way we dont have to replace the statement every time, we can just add a column with a name whenever we add the corresponding spreadsheet.

    Any Ideas?

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

    Re: Dynamically referencing file in concatenate

    To do that you need to use the INDIRECT function.. but the INDIRECT function, unfortunately only works with Opened Source workbooks.

    =CONCATENATE(INDIRECT("'http://internet.com/workload/Spreadsheets/Team/["&C2&".xls]"&C2&"'!G109")," : ","'http://internet.com/")

    There is an addin available that allows use of closed workbooks. MOREFUNC.XLL

    =CONCATENATE(INDIRECT.EXT("'http://internet.com/workload/Spreadsheets/Team/["&C2&".xls]"&C2&"'!G109")," : ","'http://internet.com/")
    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
    10-05-2010
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Dynamically referencing file in concatenate

    Thanks, that was very helpful. Unfortunately we have many people updating local sources and uploading them to sharepoint. We can't have everyone install the add-on. I would ask if there was another way around it, but due to the sharepoint setup, I am guessing, no


    Thanks for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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