+ Reply to Thread
Results 1 to 12 of 12

Replace part of link with cell value

  1. #1
    Registered User
    Join Date
    03-07-2012
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    Replace part of link with cell value

    Hi all,


    Column A has dates for example 13/04/2015 in A1

    and column B to D has links to files in a special location as per below example

    B1 shows formula 'P:\CIM_Reports\Weekly\Email\Volume\Repairs\[150413_Oxon_Repairs_Email.xlsx]Sheet1'!$K$15


    Could you please advise how I can replace part of the link where it says 150413 with a cell reference in column A, so that when I drag the formula down it will be looking at files which names starts with dates showing in column A

    I tried 'P:\CIM_Reports\Weekly\Email\Volume\Repairs\["A1"_Oxon_Repairs_Email.xlsx]Sheet1'!$K$15 but it did not work

    Thanks!

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Replace part of link with cell value

    You can try this formula

    =SUBSTITUTE(B1,MID(B1,FIND("[",B1)+1,6),TEXT(A1,"yymmdd"))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Replace part of link with cell value

    Please read the forumrules, expexcialy the ones about crossposting.

    http://www.mrexcel.com/forum/excel-q...ta-column.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    03-07-2012
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: Replace part of link with cell value

    Thank you for you trying to help me in that forum, but I cannot use several cells to modify existing cells, as I will have formulas in column B, C, D, E etc so I cannot have extra columns to modify those cells.

  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 2406
    Posts
    44,662

    Re: Replace part of link with cell value

    Try this in B1

    =INDIRECT("'P:\CIM_Reports\Weekly\Email\Volume\Repairs\["&A1&"_Oxon_Repairs_Email.xlsx]Sheet1'!$K15")

    and drag down...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Registered User
    Join Date
    03-07-2012
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: Replace part of link with cell value

    No, Glenn

    Would not work

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Replace part of link with cell value

    @Rafuk73,

    Did you read the forumrules?

    Please reply.

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

    Re: Replace part of link with cell value

    Sorry. Having a blonde moment. Will the target file be OPEN or CLOSED? If CLOSED, you're in trouble, unless you can use 3rd party software. INDIRECT.EXT is what you need. It is no longer supported but can work perfectly well with 2010. I am not 100% certain that it works reliably over a network. All users must have it installed, too.

    Google indirect.ext Excel 2010 for free download & instructions.

    If this is a non-runner, you're stuck.

  9. #9
    Registered User
    Join Date
    03-07-2012
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: Replace part of link with cell value

    Quote Originally Posted by oeldere View Post
    @Rafuk73,

    Did you read the forumrules?

    Please reply.
    Did I read the forumrules? What forum rules?

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Replace part of link with cell value


  11. #11
    Registered User
    Join Date
    03-07-2012
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: Replace part of link with cell value

    Ok, thanks. You have already provided the link, so there is no point for me to do it again.
    I wished you just found a solution to my query, but nevermind

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Replace part of link with cell value

    Rafuk73,

    Since you seem not impressed, maybe you could take the time to read this link also.

    http://www.excelguru.ca/content.php?184

+ 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. replace only part before @ in a cell
    By clausule in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-01-2014, 11:14 PM
  2. Q: DDE Link - Replace Part of the Formula
    By Reto Walker in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-14-2006, 12:15 PM
  3. [SOLVED] Using a cell reference as part of a link
    By Missy in forum Excel General
    Replies: 3
    Last Post: 02-03-2006, 04:50 PM
  4. [SOLVED] Can I use a cell value as part of a link's path name?
    By Dave in forum Excel General
    Replies: 1
    Last Post: 10-04-2005, 04:05 AM
  5. Replies: 0
    Last Post: 07-20-2005, 08:05 AM

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