+ Reply to Thread
Results 1 to 10 of 10

Hyperlink to sheet and cell

  1. #1
    Registered User
    Join Date
    05-03-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    23

    Hyperlink to sheet and cell

    Hello All,

    I have 2 columns. Each row contains the name of a sheet in column S and the row of the sheet in column T. I would like to create a link, in column U, on each row, that displays a hyperlink to the sheet and row based on what is located in columns s&t. Is this possible?

    Thanks so much,
    Cedric

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Hyperlink to sheet and cell

    Can you post a few examples and explain what they mean/what should happen?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    05-03-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Hyperlink to sheet and cell

    e.g.


    S T U

    1 Sheet1 34 (hyperlink - goes to sheet stated in S and row stated in T)

    2 Sheet2 5 (hyperlink - goes to sheet stated in S and row stated in T)

    3 Sheet3 55 (hyperlink - goes to sheet stated in S and row stated in T)

  4. #4
    Registered User
    Join Date
    05-03-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Hyperlink to sheet and cell

    sorry formatting was bad above...see below


    e.g.


    --------------S---------------T---------------- U

    1---------Sheet1----------- 34---------------(hyperlink - goes to sheet stated in S and row stated in T (Sheet1 - Row 34))

    2---------Sheet2------------5----------------(hyperlink - goes to sheet stated in S and row stated in T (Sheet2 - Row 5))

    3---------Sheet3------------55-------------- (hyperlink - goes to sheet stated in S and row stated in T (Sheet3 - Row 55)

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Hyperlink to sheet and cell

    Try this...

    S1 = Sheet1
    T1 = 34

    This formula entered in U1:

    =HYPERLINK("#"&S1&"!A"&T1,"GO")

    That will take you to cell A34 on Sheet1.

  6. #6
    Registered User
    Join Date
    05-03-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Hyperlink to sheet and cell

    It keeps saying "reference is not valid". I check it and it looks right. Any idea on what it could be?

    I even tried a more basic formula like: =HYPERLINK("#MyRange","Jump There") ....and it still gave the same error.

  7. #7
    Registered User
    Join Date
    05-03-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Hyperlink to sheet and cell

    Very strange...I created a new workbook that contains only your code and 2 sheets and there it works, but for some reason it doesnt work on the workbook that i need it in. The only difference I can see if that the workbook that I need it in has an extension of xlsm whereas the new workbook that i created has an extension of xlsx.

  8. #8
    Registered User
    Join Date
    05-03-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Hyperlink to sheet and cell

    I tried a few different things and it seems to only work when the name of the sheet doesn't have a "-" or "space" in it. Is there any way around this as I have already created tons of code using the current sheet names.

  9. #9
    Registered User
    Join Date
    03-06-2014
    Location
    Liverpool
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Hyperlink to sheet and cell

    =HYPERLINK("#TabName!cellref","whatyouwantthelinktobecalled")

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Hyperlink to sheet and cell

    Quote Originally Posted by cedricmeier View Post
    I tried a few different things and it seems to only work when the name of the sheet doesn't have a "-" or "space" in it. Is there any way around this as I have already created tons of code using the current sheet names.
    If the sheet names contain spaces:

    S1: Sheet 1
    T1: 34

    Formula entered in U1:

    =HYPERLINK("#'"&S1&"'!A"&T1,"GO")

+ 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. Hyperlink a cell from one sheet with a matching cell in another sheet
    By cwryan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2014, 09:28 AM
  2. Replies: 1
    Last Post: 08-06-2013, 02:47 AM
  3. Replies: 2
    Last Post: 06-16-2011, 02:11 AM
  4. Hyperlink to the same cell in a different sheet
    By tbutterworth in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2010, 06:26 AM
  5. Hyperlink to a sheet through a cell containing that sheetname
    By consultantguy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2009, 08:05 AM

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