+ Reply to Thread
Results 1 to 6 of 6

Join text & cell reference in a link.

  1. #1
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Join text & cell reference in a link.

    This is a variant of paste links.

    I have a long list of one-word names in column A of my active sheet (Ape, Bear, Cat, etc). Elsewhere on my hard drive I have a series of files called Ape.xlsx, Bear.xlsx, Cat.xlsx, etc.

    In column B of my active sheet I want to return the value in a fixed cell (e.g. B4) from each of these files. Yes, I can paste a link once and then Ctrl+H to change the file name, but it would be a really neat solution to be able to combine the value in the appropriate row of column A, with the rest of the path, to make the procedure much faster less prone to error caused by my ten-thumb typing skills.


    Row...................Col A..................Col B
    1.......................Ape...................='C:\Users\Glenn\Desktop\[Ape.xlsx]Sheet1'!$B$4

    I've tried ="Text"&a1&"text" and lots of variants, but i'm goofing up somehwere.

    The formula bar shows:

    ="'C:\Users\Glenn\Desktop\["&A2&".xlsx]Sheet1'!$B$2"


    The cell content displays (seemingly correctly), as a string:

    'C:\Users\Glenn\Desktop\[Ape.xlsx]Sheet1'!$B$4,

    but doesn't return the value in B4 of Ape.xlsx. If this can be done, how can this be done?
    Last edited by Glenn Kennedy; 08-23-2013 at 03:22 AM.

  2. #2
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Join text & cell reference in a link.

    Hi

    See if this works =CONCATENATE("=","C:\Users\Glenn\Desktop\[",A1,".xlsx]Sheet1'!$B$4")

    slelect column B -- go to--Data ---text to column -- finish

    Ensure those files on desktop are open atlest once at start to update values (if required)
    Last edited by amy_d2; 08-23-2013 at 03:59 AM.
    Click on * below if you find this helpful

    Thanks,
    A

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Join text & cell reference in a link.

    No. That didn't work - in any of the text-to-column variants that I tried, irrespective of whether or not the source file was open.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Join text & cell reference in a link.

    you need indirect()
    only works on open workbooks though
    =INDIRECT("'C:\Documents and Settings\Martin Wilson\Desktop\["&A1&".xls]Sheet1'!$B$2")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Join text & cell reference in a link.

    Perfect. I'd tried "INDIRECT" at breakfast this morning, but I didn't know that the source sheet had to be open. It seems to work a treat. I'll try it out in earnest in a momnet.

    it's amazing the things you didn't know you didn't know...

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Join text & cell reference in a link.

    OK... back again.

    Martin, Your solution worked a dream... up to a point. I have anything up to 40 source files to draw from, each one about 2Mb in size, and each one containing a lot of drain on processing speed. To get the summary Table completed, all of the source sheets have to be open at once. My wee laptop can't cope with having everything open at once...

    So does anyone have any other ideas that might work that don't require me to have all source files open at the same time?

+ 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. Have a link with a Cell Reference
    By grimm33184 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-05-2013, 05:25 PM
  2. Using cell reference in a link
    By Befuddled in forum Excel General
    Replies: 4
    Last Post: 04-09-2010, 12:05 AM
  3. join text from multiple cells to one cell
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2009, 06:28 PM
  4. [SOLVED] Delete Spaces and Join Text in Cell
    By Diggsy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2005, 11:05 PM
  5. [SOLVED] Cell only shows link in text, not contents of reference cell
    By Jay Mac in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-23-2005, 04:05 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