+ Reply to Thread
Results 1 to 13 of 13

Reference different sheet for hyperlink

  1. #1
    Registered User
    Join Date
    10-30-2008
    Location
    Louisiana
    Posts
    6

    Reference different sheet for hyperlink

    I'm wondering if someone could help me. I'm working on a formula to get the the path of a picture on a different sheet in a workbook. I am trying to get use the hyperlink function to reference that cell on the the other sheet. It looks right but I get an error saying that it cannot open the specified file. This is what my formula looks like:

    =HYPERLINK(ADDRESS(4,12,2,,"Sheet 1"),2)

    I need it to actually get the actual text value of the cell I am trying to reference. How would I do that?

    Thanks.

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    The hyperlink will take you to this other cell - is that what you want to do?

    =HYPERLINK("#" & ADDRESS(4,12,2,,"Sheet 1"),2)

    Richard
    Richard Schollar
    Microsoft MVP - Excel

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,438
    =HYPERLINK(INDIRECT(ADDRESS(4,12,2,,"Sheet 1")),2)
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    10-30-2008
    Location
    Louisiana
    Posts
    6
    I want the file path in the cell I'm trying to reference. I want the actual text value. I have a sheet that needs to have a bunch of hyperlink I'm trying to make it fast so i do not have to click right each cell and click hyperlink 400 times.

    Thanks.

  5. #5
    Registered User
    Join Date
    10-30-2008
    Location
    Louisiana
    Posts
    6
    Quote Originally Posted by Andy Pope View Post
    =HYPERLINK(INDIRECT(ADDRESS(4,12,2,,"Sheet 1")),2)

    I tried that and I get an #REF! error.

  6. #6
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Use Andy's suggestion.

    EDIT: which works for me. Are you sure you have a space between the Sheet and the 1? or should it be Sheet1?
    Last edited by Richard Schollar; 10-30-2008 at 10:56 AM.

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,438
    double check the Address arguments.
    yours contained a space in the sheet name which I have kept.

  8. #8
    Registered User
    Join Date
    10-30-2008
    Location
    Louisiana
    Posts
    6
    That worked. What I really need it to do is able to drag the forumula from left to right (across the row) and let excel automatically update the cell references. I can attach the sheet if needed.

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,438
    =HYPERLINK(INDIRECT(ADDRESS(4,COLUMN(L:L),2,,"Sheet1")),2)

  10. #10
    Registered User
    Join Date
    10-30-2008
    Location
    Louisiana
    Posts
    6
    Quote Originally Posted by Andy Pope View Post
    =HYPERLINK(INDIRECT(ADDRESS(4,COLUMN(L:L),2,,"Sheet1")),2)
    That one didn't correctly. It hyperlinks but not to the right location. I have attached the document. Column AM has the hyperlinks. Sheet1 contains the paths to the picture. I want to be able to drag across the hyperlink section and it update the link by going down a row in the sheet with the file path's

    Thanks
    Attached Files Attached Files

  11. #11
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,438
    so you want the single column list to fill 4 cells across then move down and fill next 4?

  12. #12
    Registered User
    Join Date
    10-30-2008
    Location
    Louisiana
    Posts
    6
    Quote Originally Posted by Andy Pope View Post
    so you want the single column list to fill 4 cells across then move down and fill next 4?
    Yes, when I drag the formula across to the next cells to hyperlink, It needs to get the file path from the other sheet by moving down the list. So I as I drag across the list, it needs to get the file path by moving down the list with the file paths.

    Thanks.

  13. #13
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,438
    Formula in AM5 can be copied across 4 columns and down the rows.

    =HYPERLINK(INDIRECT(ADDRESS( ((ROW()-ROW($5:$5))*4)+(COLUMN()-COLUMN($AM:$AM))+2,COLUMN($L:$L),2,,"Sheet1")), ((ROW()-ROW($5:$5))*4)+(COLUMN()-COLUMN($AM:$AM))+1 )

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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