+ Reply to Thread
Results 1 to 4 of 4

Hyperlink variable on cell reference

  1. #1
    Registered User
    Join Date
    02-14-2014
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    33

    Hyperlink variable on cell reference

    Please Login or Register  to view this content.
    Hi,

    I'm quite new to formulas in the excel, I'm using the above formula to create a hyperlink, however I need this to change based on a cell "G38",
    "G38" shows the sheet name that I want to hyperlink to (there are 22 sheets named "Data 1" to "Data 22") and the sheet name changes depending on who opens the spreadsheet. So what I really want is something like this:

    Please Login or Register  to view this content.
    But I can't seem to get this to work

    Hope you can help

    Thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Hyperlink variable on cell reference

    hyperlink acts the same as indirect so you don't need indirect at all
    =HYPERLINK("#'"&G38&"'!a1","Data Page")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Hyperlink variable on cell reference

    Hi,

    You don't need INDIRECT here. Simply:

    =HYPERLINK("#'"&G38&"'!A1","Data Page")

    should work.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Registered User
    Join Date
    02-14-2014
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Hyperlink variable on cell reference

    Thanks very much! Works like a dream

+ 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] Hyperlink with variable cell references
    By Decar in forum Excel General
    Replies: 4
    Last Post: 11-13-2013, 03:41 PM
  2. Variable Cell with Variable Reference
    By AndrewR1114 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-12-2012, 03:12 AM
  3. Replies: 6
    Last Post: 11-30-2010, 04:40 AM
  4. hyperlink in reference cell
    By spata4ok in forum Excel General
    Replies: 5
    Last Post: 12-23-2009, 11:53 AM
  5. 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

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