+ Reply to Thread
Results 1 to 6 of 6

Hyperlink to a cell containing a reference

Hybrid View

taxboy2010 Hyperlink to a cell... 05-28-2015, 10:17 AM
6StringJazzer Re: Hyperlink to a cell... 05-28-2015, 01:43 PM
6StringJazzer Re: Hyperlink to a cell... 05-28-2015, 01:47 PM
taxboy2010 Re: Hyperlink to a cell... 05-28-2015, 04:33 PM
6StringJazzer Re: Hyperlink to a cell... 05-28-2015, 10:42 PM
taxboy2010 Re: Hyperlink to a cell... 05-29-2015, 03:23 PM
  1. #1
    Registered User
    Join Date
    05-28-2015
    Location
    Charleston, SC
    MS-Off Ver
    2013
    Posts
    3

    Hyperlink to a cell containing a reference

    I work in accounting and the dinosaurs above me prefer that I insert hyperlinks to where I pull numbers from rather than use Ctrl+[ to navigate to cell references. My problem is that I want to write a formula that can generate a hyperlink without having to manually enter the tab and cell that a number is pulling from. For example, if a cell on a calculation tab (let's call it 'Calc Tab') in cell C10 is pulling a number such as $10,000 from Cell P8 a balance sheet tab (let's call it 'Balance Sheet 1'), I want to write a formula in cell B10 on the calc tab that can pull the reference from C10 and take me directly to cell P8 on the balance sheet tab. I could do this manually, but I work with a ton of workbooks each and every day and I am looking for a more efficient formula to write that I could hypothetically copy and paste each time. I have been messing with the hyperlink formula with a nested indirect function, but haven't been able to crack it. Thanks for the help!

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,744

    Re: Hyperlink to a cell containing a reference

    Try this formula.

    Formula: copy to clipboard
    =HYPERLINK("[filename.xlsx]Sheet2!A1",Sheet2!A1)


    Change filename to whatever your file name is. And of course, change Sheet2!A1 to the actual worksheet and cell reference.

    Edit: It is counterintuitive but the quotes seem to be required. Unfortunately that means you can't copy and paste.

    This could also be done with a macro to add hyperlinks to cells without having to use the HYPERLINK function. Let me know if you'd like to explore that possibility. If so I would need to know what your formulas look like.
    Last edited by 6StringJazzer; 05-28-2015 at 01:45 PM. Reason: in blue
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,744

    Re: Hyperlink to a cell containing a reference

    Here is a revision that is copy-and-pastable.

    Formula: copy to clipboard
    =HYPERLINK("[hyperlink.xlsx]"&SUBSTITUTE(CELL("address",Sheet2!A1),"$",""),Sheet2!A1)

  4. #4
    Registered User
    Join Date
    05-28-2015
    Location
    Charleston, SC
    MS-Off Ver
    2013
    Posts
    3

    Re: Hyperlink to a cell containing a reference

    OK so I tried that code, however, I don't think it solved my problem. Here's a simplified example of what I need:

    Cell B2 on Tab A contains the number 10,000
    Cell C3 on Tab B contains the formula "=TabA!B2"
    *This info is all in the same workbook so I don't think the workbook reference in brackets is necessary*

    I want to write a Hyperlink formula in Cell B3 on Tab B that creates a hyperlink to the location of the item referenced in cell C3 (i.e. to the 10,000 on Tab A), but I want it to pull the info from Cell C3 and not manually input a hyperlink to B2 on Tab A. If that makes sense. Thanks again!

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,744

    Re: Hyperlink to a cell containing a reference

    Sorry, on re-read of you original post I see you described exactly what you wanted and I missed that you had the formula in one cell and the link in another.

    You have to use VBA to do this. See attached, with UDF in Module1.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-28-2015
    Location
    Charleston, SC
    MS-Off Ver
    2013
    Posts
    3

    Re: Hyperlink to a cell containing a reference

    Worked like a charm. Thanks!

+ 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. [SOLVED] Use cell value as reference in a hyperlink
    By LinaVa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-17-2014, 06:26 AM
  2. Replies: 6
    Last Post: 11-30-2010, 04:40 AM
  3. hyperlink in reference cell
    By spata4ok in forum Excel General
    Replies: 5
    Last Post: 12-23-2009, 11:53 AM
  4. Can You Use A Cell Reference in a Hyperlink?
    By xfreez99 in forum Excel General
    Replies: 3
    Last Post: 07-29-2008, 12:23 PM
  5. [SOLVED] script to hyperlink and reference a cell value in the hyperlink
    By Natasha D. in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2006, 02:43 PM

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