+ Reply to Thread
Results 1 to 4 of 4

Hyperlink to specific text in another worksheet (II)

  1. #1
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Hyperlink to specific text in another worksheet (II)

    hey guys, i got this formula from another thread in this forum:
    http://www.excelforum.com/excel-work...worksheet.html

    Let's say if there's a text in A1 & this formula in B1:
    =HYPERLINK(CELL("address",INDIRECT("Sheet2!A"&MATCH(A1,Sheet2!A:A,1))),A1)

    This formula/hyperlink will link it to Sheet2 & find the text.

    But when i tried to name my file with spaces, it does not work anymore.

    Attached "Book5" that works (No spaces in filename) & "Book 5" that does not work (a space in filename)
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  2. #2
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Hyperlink to specific text in another worksheet (II)

    When you reference a file with a space in windows you have to use quotes around the link. So the middle bit produces '[Book 5.xls]Sheet2'!$A$5. It needs to have ["Book 5.xls"]Sheet2'!$A$5.

    I can't figure a way around it. It seems to be a bug maybe you can try using =address() and match()
    Last edited by darknation144; 05-17-2012 at 10:09 AM.
    If someone helped give them rep using the star button.

    If you have received a satisfactory solution please mark the thread solved. If not Fotis will come for you at night :P

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Hyperlink to specific text in another worksheet (II)

    hey darknation144, yeah i did realise that difference too. didnt know how to resolve it. thanks anyway

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Hyperlink to specific text in another worksheet (II)

    i've found a solution, if anybody's interested:
    =)
    =HYPERLINK(MID(CELL("filename",Sheet2!$A$1),FIND("[",CELL("filename",Sheet2!$A$1)),256)&"!"&ADDRESS(MATCH(A1,Sheet2!A:A,0),1),Sheet1!A1)

+ 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