+ Reply to Thread
Results 1 to 13 of 13

Hyperlink to the same date in another sheet

  1. #1
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Hyperlink to the same date in another sheet

    Hi

    I have a workbook with many sheets. All sheets have sequential dates in column A, 1 row per day, looking backwards in time as well as forwards.

    NB NB The sheets do not necessarily all start on the same date, so 1/1/2019 might be cell A999 in Sheet1 , but cell A600 in Sheet2.

    I want to hyperlink from a cell, say F999 in Sheet1 to the same date in Sheet2, ideally cell F600 (but any cell in row 600 would do).

    I've looked up Hyperlink on Google but sadly I really don't understand. Can it be done? , and if so how?

    Many thanks as always

    Trebor

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Hyperlink to the same date in another sheet

    Try this

    =HYPERLINK(MID(CELL("filename",F6),FIND("[",CELL("filename",F6)),FIND("]",CELL("filename",F6))-FIND("[",CELL("filename",F6))+1)& "Sheet2!F"& MATCH(F6,Sheet2!F:F,0),"Link")
    Martin

  3. #3
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Hyperlink to the same date in another sheet

    Hi again & thanks for this. I assume the "filename" needs the full pathname of the file ? ie C:/etc/etc ??

    Why F6 I don't understand??

    Thanx again Trebor

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Hyperlink to the same date in another sheet

    In the test that I did, this is the formula that I entered in row 6 where the dates were in column F.

    Just paste in what I have supplied into a cell in row 6 and give it a try. Filename is an argument of the CELL function.

  5. #5
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Hyperlink to the same date in another sheet

    Thanks again. My dates are in column A, so I changed all your F6 to A6. Also Sheet2!F to Sheet2!A, and Sheet2!F:F to Sheet2!A:A.
    I pasted it into cell W6 (the 1st free column) in Sheet1. I get a #name error.

    I can't send a copy of the worksheet as it's very confidential.

    I will double-check and get back to you.

    Trebor

  6. #6
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Hyperlink to the same date in another sheet

    I think I understand, my cell F999 that I used in the question is a random cell in row 999, the dates are in cell A999

  7. #7
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Hyperlink to the same date in another sheet

    Please see the attachment for an example.

    It only works for workbooks which have been saved - i.e. those that have a filename.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Hyperlink to the same date in another sheet

    Thanx again, my workbook is saved to the C: drive, in MyDocuments.

    I will check out your download tomorrow as it's late & I have to log off soon. Trebor

  9. #9
    Registered User
    Join Date
    03-26-2016
    Location
    São Paulo - Brazil
    MS-Off Ver
    2016
    Posts
    48

    Re: Hyperlink to the same date in another sheet

    Another way

    =HYPERLINK("#"&"Sheet2!A"& MATCH(A2,Sheet2!A:A,0),"Link")

    Decio

  10. #10
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Hyperlink to the same date in another sheet

    Hi & thanks, I assume this needs to go into a spare column in row 2, sheet1 ??

  11. #11
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Hyperlink to the same date in another sheet

    Quote Originally Posted by Trebor777 View Post
    Thanx again, my workbook is saved to the C: drive, in MyDocuments.

    I will check out your download tomorrow as it's late & I have to log off soon. Trebor
    Hi again. Your book works fine. I am beginning to think that the problem at this end is due to my sheet (tab names)

    The example I sent used Sheet1 and Sheet2 as tab names. My actual Sheet2 is actually called 'Aaa. Bbb', with a space in the middle. It works fine in my workbook, but I wonder is it OK in your solution?

    I can change the sheet name no problem, it will take a while, as many other sheets link to it.

    Am I right in assuming this is the issue ?

    Many thx for all your support

    Trebor

  12. #12
    Registered User
    Join Date
    03-26-2016
    Location
    São Paulo - Brazil
    MS-Off Ver
    2016
    Posts
    48

    Re: Hyperlink to the same date in another sheet

    In this case use this way

    Decio
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Hyperlink to the same date in another sheet

    This works, thanks both, I'd missed the single quotes.

+ 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. Enter today date on other sheet from hyperlink
    By unley in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2017, 03:36 AM
  2. Replies: 0
    Last Post: 10-27-2015, 08:59 AM
  3. Replies: 0
    Last Post: 10-27-2015, 08:57 AM
  4. [SOLVED] Create new sheet from template, auto fill from index sheet and hyperlink
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-06-2013, 04:57 AM
  5. Replies: 1
    Last Post: 02-23-2013, 05:18 AM
  6. Replies: 2
    Last Post: 01-13-2012, 04:59 PM
  7. Paste hyperlink to a hyperlink in another sheet
    By skiman123321 in forum Excel General
    Replies: 1
    Last Post: 12-14-2006, 07:25 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