+ Reply to Thread
Results 1 to 6 of 6

Thread: generate "clickable" link leading to a cell reference?

  1. #1
    Registered User
    Join Date
    11-09-2011
    Location
    San Diego
    MS-Off Ver
    Excel 2007
    Posts
    34

    generate "clickable" link leading to a cell reference?

    I know you can copy a cell, then "paste as hyperlink" to generate a link by hand which when clicked will lead you to the pasted cell.

    However what I am looking to do is write a formula (no macro) which can generate a link to a cell on a different sheet based upon something like "match" or "vlookup" or "hlookup"

    Effectively I need to write a simple search formula that can match a users input and generate a link leading to the cell on anther sheet which matches the given input.

    Ex, in cell A1 the user types "301" and in B1 a hyperlink is generated which is "clickable" which upon clicking will lead the user to the cell on the sheet which contains "301". I would like to automate the paste as hyperlink operation based on user input.

    Any ideas?

  2. #2
    Forum Guru 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Vienna, VA, USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    2,257

    Re: generate "clickable" link leading to a cell reference?

    Attached is an example using the HYPERLINK function. This assumes data is in a single column. (If your data is not in a single row or a single column then I'm not sure how to solve this.)

    In this example if you enter a number that is not found, the result is "Not Found." If the number is found, then the result is a clickable link that says "Go there".
    Attached Files Attached Files
    Making the world a better place one fret at a time
    ||||||

    If someone helped you, please click on the star icon at the bottom of their post

    If your problem is solved, please update the first post:
    EDIT, Go Advanced button, set Prefix to SOLVED

    [code]
    ' Enclose code in tags like this
    [/code]

    Don't attach a screenshot
    --just attach your Excel file! It's easier and will let us experiment with your data, formulas, and code.

  3. #3
    Valued Forum Contributor vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - Guimba-Nueva Ecija
    MS-Off Ver
    2010
    Posts
    777

    Re: generate "clickable" link leading to a cell reference?

    Hello
    Another one.
    Attached Files Attached Files
    Contributors to this forum do not get paid. They give their valuable time to help you solve your problem. That's why feel free to CLICK their STAR icon to say thank you -even the given idea/solution didn't really solve your queries. The time given to you deserves a small gratitude anyway.

    Dare to give a pencil to a child. http://www.blackpencilproject.org/

  4. #4
    Registered User
    Join Date
    11-09-2011
    Location
    San Diego
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: generate "clickable" link leading to a cell reference?

    I like the error checking because the users of my spread sheet will likely input numbers that don't exist and this way they wont be confused when it bounces.

    I have a question though...I will be searching single columns, but over multiple sheets. so the same column across say ten different sheets.

    All of the data is organized into tables with unique names. One table per sheet, and the headers of each table are identical. So the first column (A) is always the user numbers. I will include a sample that matches my format so you can tell me if you think this is adaptable.

    So I know I can refer to each table easily with "Table1[user]" or "Table2[user]" but is there a way I can refer to every "user" column. Could I set up a named range that spans multiple worksheets? Or can we just adapt the formula to work with multiple ranges?

  5. #5
    Forum Guru 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Vienna, VA, USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    2,257

    Re: generate "clickable" link leading to a cell reference?

    Your initial post suggested match and lookup, which can only search one sheet (as far as I have been able to find out). Named ranges cannot span sheets. You need a macro, or nested IF tests, one for each sheet.

  6. #6
    Registered User
    Join Date
    11-09-2011
    Location
    San Diego
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: generate "clickable" link leading to a cell reference?

    Yea I have just been playing with this to test multiple sheets. I could use any functions to accomplish this, just my first guess was to use match. I didn't foresee the complication of multiple sheets. I can pursue the nested If's --a bit hacked together but its only 11 sheets so it will still run fine.

+ 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.2.0