+ Reply to Thread
Results 1 to 22 of 22

Hyperlink to hyperlink

  1. #1
    Registered User
    Join Date
    02-12-2016
    Location
    Alphen aan den Rijn
    MS-Off Ver
    2010
    Posts
    8

    Hyperlink to hyperlink

    I have table of 1000 records. In this table I collect hyperlinks to a lot of Google Drive files. Those links are made manually.
    In another sheet I created a lot of fields where I find the info out of my database (vlookup). Works fine of course.

    But... I also want to find some of the fields with the hyperlinks, and display the very same hyperlinks.
    Here is were the problem arises. The link that is displayed will lead me to .... my 1000 record database, and not to the Google Drive file.

    How do I solve that?

    Looking forward to any answers.

    Regards,
    André

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Hyperlink to hyperlink

    I have not tried with google drive, but this method should work - see attached file
    The "green" cell on sheet2 contains the formula below and that links successfully to the hyperlink in cell C2 in sheet1
    (I hyperlinked to file on my D drive)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    EXPLANATION

    The actual link is in cell C2 on sheet1

    Above formula creates a working link to the same link
    - the lookup value is B2 (sheet2)
    - that is looked up (using MATCH) in columnA in sheet1 (to give the row number = 2)
    - the link is in column C = column 3)
    - ADDRESS(row 2, column 3) = C2
    - then add the sheet reference "Sheet1!&ADDRESS...
    - then wrap with INDIRECT
    - which provides what is required inside the HYPERLINK formula

    NOTE - the cell containing the link in sheet1 should not contain a "friendly name" (full link path is required)

    I have included workings below row 2 on sheet2, so that you can see how the formula builds - those workings are not required
    Attached Files Attached Files
    Last edited by kev_; 06-01-2017 at 03:47 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Registered User
    Join Date
    02-12-2016
    Location
    Alphen aan den Rijn
    MS-Off Ver
    2010
    Posts
    8

    Re: Hyperlink to hyperlink

    Thank you kev_ !!
    I tried to apply the formula and I think I'm really close.

    The combination Address & Match brings up the cell in the tab that I'm looking for, so that's working fine.
    The destination cell is also recognized as a link, for the "hand"-cursor shows up.

    The last stap is to solve this message I get:
    "The file you are looking for can not be opened". Obviously my message is in Dutch, so I translated it to English.

    The message is kinda odd, because the pdf is accessible (with the regular link I can open it from the cell).
    Do you have any suggestions?

    Thank you!
    André

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Hyperlink to hyperlink

    Hi André
    Excel is not always very helpful! It is probably looking in the wrong place for the file - but it does not tell us where it is looking

    I have just tested my method works fine with a PDF. Let's get it working on your local drive first, and then you can make it work with other drives.

    Please reply with
    - the full path
    - and file name
    - of a real PDF file which is on your local C drive. Something like this:

    C:\Documents\TestFolder\myFile.pdf

    I will create the same folder here and a file with the same name, and send you a workbook with the formula that works for me using the method in my previous post

    thanks
    Kev

  5. #5
    Registered User
    Join Date
    02-12-2016
    Location
    Alphen aan den Rijn
    MS-Off Ver
    2010
    Posts
    8

    Re: Hyperlink to hyperlink

    Hi Kev,

    I created a folder with the following pad/name:
    C:\Users\HP\Documents\TESTFOLDER

    The name of the file is:
    0707 OPW LS - Met diep ontzag

    I noticed that Excel allows me to create a hyperlink manually, and it will let me select the file in the path I mentioned above.
    It does replace all the spaces with a lot of rubbish:

    ..\Documents\TESTFOLDER\0707%20OPW%20LS%20-%20Met%20diep%20ontzag.pdf

    Would that mess up the procedure?
    I did try the hyperlink with the formula and the TESTFOLDER, but I still got the same error message.

    Regards,
    André

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Hyperlink to hyperlink

    maybe try this :
    =HYPERLINK("[C:\Users\HP\Documents\TESTFOLDER\0707 OPW LS - Met diep ontzag.pdf]","any tooltip")

  7. #7
    Registered User
    Join Date
    02-12-2016
    Location
    Alphen aan den Rijn
    MS-Off Ver
    2010
    Posts
    8

    Re: Hyperlink to hyperlink

    Hi Sandy,

    For sure: it opened the file! So a hyperlink pointing to a local file is no problem.

    Regards,
    André

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Hyperlink to hyperlink

    So yuou need something like this?
    =HYPERLINK("https://drive.google.com/file/d/0B9gVfJJNXtlub2xJbzlRM3AwbTg/view?usp=sharing","vx")

    both files are on GD

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Hyperlink to hyperlink

    You said : can't open file
    paste here yours hyperlink with this "error"
    and what are you trying to do? open local file from local excel, open local file from google drve excel (you will need server on your computer), open file from GD with local excel file?

  10. #10
    Registered User
    Join Date
    02-12-2016
    Location
    Alphen aan den Rijn
    MS-Off Ver
    2010
    Posts
    8

    Re: Hyperlink to hyperlink

    This is the issue: I need to link my hyperlink to a cell that has the link to the PDF in my Google Drive.
    So, the last cell has the a link similar to what you mention.

    We need the Hyperlink-formula that finds the last cell with Address & Match.

  11. #11
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Hyperlink to hyperlink

    as promised here is file with method working with your file path and file name

    These 3 ways of creating hyperlink all work in the file:

    with and without [ ] brackets
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and type link directly into cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and all 3 links to links also work
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    02-12-2016
    Location
    Alphen aan den Rijn
    MS-Off Ver
    2010
    Posts
    8

    Re: Hyperlink to hyperlink

    This is the formula in my destination cell:
    =HYPERLINK(INDIRECT("BRON!"&ADRES(VERGELIJKEN($D$2;BRON!$A:$A;0);8;4)))

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Hyperlink to hyperlink

    This is the issue: I need to link my hyperlink to a cell that has the link to the PDF in my Google Drive.
    File in post #2
    change link on sheet1 C2 to GD link
    if you click on sheet2 C2 it should open defined file from GD

    you will not see link on sheet1 C2 because link from sheet2 C2 goes indirectly (thru the second link) to file on GD

    or I really misunderstood

  14. #14
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Hyperlink to hyperlink

    @sandy666 - I am staying out of this conversation - I do not want to confuse things - OP asked for link via link which is why it goes thru 2nd link

  15. #15
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Hyperlink to hyperlink

    In post #2 you did it and it works. Now OP should change "mid" link to GD link document and that's all .
    All is work well.

    Or OP should be more descriptive with details

  16. #16
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Hyperlink to hyperlink

    Here is:
    Excel file with link selection to links to files (local or online)

    is that what you want to achieve?

    see att.
    Attached Files Attached Files
    Last edited by sandy666; 06-01-2017 at 01:10 PM. Reason: file modified

  17. #17
    Registered User
    Join Date
    06-03-2017
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    10

    Re: Hyperlink to hyperlink

    Great news Sandy, it works like a charm. After my coffee I will try to figure out what i was doing wrong in my formula but the sample was easy enough to adapt to fix my problem. Thank You.

  18. #18
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Hyperlink to hyperlink

    You are welcome

    If problem is resolved read my "dancing" footnote

  19. #19
    Registered User
    Join Date
    06-03-2017
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    10

    Re: Hyperlink to hyperlink

    Thanks again for the help. The sample you sent looks almost like one of the formulas i wrote but could not get to work at all. I compared the details and discovered I was trying to match the entire data table instead of just the column the number was in. After changing the code to just look in one column it worked great. Now I will look for your dancing footnote. I am new to forums so navigating around them is not so easy for an old dog.

  20. #20
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Hyperlink to hyperlink

    @ dallen442 if you dont know "How to..." look at:


    Go to the bottom left corner of the post of the person
    addrep01.gif

    Go to the top right corner of your thread
    addsolved01.gif
    Last edited by sandy666; 06-04-2017 at 10:46 AM.

  21. #21
    Registered User
    Join Date
    02-12-2016
    Location
    Alphen aan den Rijn
    MS-Off Ver
    2010
    Posts
    8

    Re: Hyperlink to hyperlink

    Dear Sandy,

    I was out of town for 5 days. I will check your posts today.

    Greetz
    André

  22. #22
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Hyperlink to hyperlink

    No prob

+ 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] With Hyperlink formula & vba, I want to copy text of hyperlink to the cell it's linked to
    By Freakytone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2017, 05:46 PM
  2. [SOLVED] Excel 2010 Create a macro to check if cell contains hyperlink then apply hyperlink style
    By chasidar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2013, 04:48 AM
  3. Using Vlookup to pull hyperlink from Master Hyperlink file list.
    By theflyingnimbus in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-02-2013, 01:42 PM
  4. Replies: 1
    Last Post: 02-23-2013, 05:18 AM
  5. Replies: 20
    Last Post: 03-19-2011, 09:13 AM
  6. Replies: 0
    Last Post: 03-26-2006, 07:10 PM
  7. [SOLVED] Intra-workbook hyperlink: macro/function to return to hyperlink ce
    By marika1981 in forum Excel General
    Replies: 3
    Last Post: 05-06-2005, 01:06 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