+ Reply to Thread
Results 1 to 12 of 12

Hyperlinking to Matched Cell in Seperate Sheet in Workbook

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Hyperlinking to Matched Cell in Seperate Sheet in Workbook

    I am attempting to make a formula to create a hyperlink to a customer within a customer list. The customer list on my first worksheet is in column C (cell C7 for this example). It needs to search within column A (from 5 to 2000) on the "Customer List" sheet for that same customer name and link to it.

    What I have so far:

    =HYPERLINK((INDEX('Customer List'!$A$5:$A$2000,MATCH(C7,'Customer List'!$A$5:$A$2000,0))))

    The formula itself is not giving me errors, but when I click on the link it says it "Cannot open the specified file".

    I am usually pretty good at figuring these things out (occasionally with help from a google search), but I have been at a dead end for a day or so now and have decided to finally seek help.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,935

    Re: Hyperlinking to Matched Cell in Seperate Sheet in Workbook

    the hyperlink() function only opens another file, it does not "jump" to another cell in the same workbook. check out the help on that function...

    Please Login or Register  to view this content.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-08-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Hyperlinking to Matched Cell in Seperate Sheet in Workbook

    Ok, this makes sense.

    How can I do this with a semi-simple formula then?

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Hyperlinking to Matched Cell in Seperate Sheet in Workbook

    You need the address of the cell, the sheet name and the filename to create a hyperlink to another cell using HYPERLINK.

    For example this is a link to A2 in Sheet2 of the workbook Book1.xlsx.

    =HYPERLINK("[Book1.xlsx]Sheet2!A2","Goto Sheet2(A2)")

    You should be able to concatenate what you need.

  5. #5
    Registered User
    Join Date
    11-08-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Hyperlinking to Matched Cell in Seperate Sheet in Workbook

    That would require knowing the exact cell, right? I'm trying to have it automatically search for the correct cell by customer name. Otherwise, I'd have to update the link all of the time, which is what I want to avoid.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Hyperlinking to Matched Cell in Seperate Sheet in Workbook

    No, not really.

    All you need is the row number, I assume you know the rest eg filename, worksheet name, column

    You can get the row number using your MATCH formula.

    I'd post an example but I don't know your workbook name.

  7. #7
    Registered User
    Join Date
    11-08-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Hyperlinking to Matched Cell in Seperate Sheet in Workbook

    Quote Originally Posted by Norie View Post
    No, not really.

    All you need is the row number, I assume you know the rest eg filename, worksheet name, column

    You can get the row number using your MATCH formula.

    I'd post an example but I don't know your workbook name.
    Ok...I'm having major issues with my brain working, despite having done a perfectly good MATCH formula before. So, yes, an example would be amazing.



    The workbook I have is called "Units".

    The sheet I'm linking from is "On Lease" (customer names in column C) and the sheet I'm linking to is "Customer List" with the customer names in Column A of that sheet.

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Hyperlinking to Matched Cell in Seperate Sheet in Workbook

    I've used really basic data in the attached workbook.
    Attached Files Attached Files
    If posting code please use code tags, see here.

  9. #9
    Registered User
    Join Date
    11-08-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Hyperlinking to Matched Cell in Seperate Sheet in Workbook

    You are amazing! Thank you so much for the help.


  10. #10
    Registered User
    Join Date
    10-29-2012
    Location
    Green Bay
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Hyperlinking to Matched Cell in Seperate Sheet in Workbook

    Norie,

    I am trying to solve the exact same problem, but I am unable to open the attachment you sent to view the solution. Would you be able to post the actual fomulas you recommended so I can see the actual code?

    Thanks much.

    Tim Green Bay

  11. #11
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Hyperlinking to Matched Cell in Seperate Sheet in Workbook

    Tim

    This was the formula, which is specific to the workbook/worksheets/ranges so you would need to change it to suit.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Give it a try and if you have problems post back.

  12. #12
    Registered User
    Join Date
    10-29-2012
    Location
    Green Bay
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Hyperlinking to Matched Cell in Seperate Sheet in Workbook

    I figured out my problem and your formula works fine.

    Can't thank you enough.

+ 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