1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Excel VLookup and Hyperlinks

Discussion in 'Business Applications' started by CWDENVER, Feb 2, 2007.

Thread Status:
Not open for further replies.
Advertisement
  1. CWDENVER

    CWDENVER Thread Starter

    Joined:
    Dec 1, 2006
    Messages:
    38
    I'm trying to use a vlookup to transfer a hyperlink from one worksheet tab to another. When I write the formula, the result is an "#N/A". How can I get the actual hyperlink to transfer based off a vlookup?? Thanks.
     
  2. etaf

    etaf Moderator

    Joined:
    Oct 2, 2003
    Messages:
    65,251
    First Name:
    Wayne
    can you post an example of the spreadsheet
     
  3. Zack Barresse

    Zack Barresse

    Joined:
    Jul 25, 2004
    Messages:
    5,452
    Hi there,

    You can't transfer hyperlinks via formulas. You would need to set up the hyperlink on the other sheet and use a formula there, or use VBA. Post the exact details for more help.
     
  4. CWDENVER

    CWDENVER Thread Starter

    Joined:
    Dec 1, 2006
    Messages:
    38
    Actually I figured it out. I can set up a table with the file address (e.g. d:\filefolder\file) in one of the columns, then use vlookup for that value. Then I just set up another column using a hyperlink function referencing that cell. I've attached an example.
     

    Attached Files:

  5. Zack Barresse

    Zack Barresse

    Joined:
    Jul 25, 2004
    Messages:
    5,452
    What I am talking about is you can use them together, the way you are using them now...

    Code:
    =HYPERLINK(VLOOKUP(E2,$B$2:$C$5,2,0),VLOOKUP(E2,$B$2:$C$5,2,0))
    No real need for two separate functions. Now if you have the morefunc.xll add-in, you can shorten it more, and if you want to do some error handling (if the value is not found in the list) you can add some to it as well...

    Code:
    =IF(ISNA(VLOOKUP(E2,$B$2:$C$5,2,0)),"",HYPERLINK(VLOOKUP(E2,$B$2:$C$5,2,0),VLOOKUP(E2,$B$2:$C$5,2,0)))
    ..with the morefunc.xll add-in...

    Code:
    =IF(ISNA(SETV(VLOOKUP(E2,$B$2:$C$5,2,0))),"",HYPERLINK(GETV(),GETV()))
    HTH
     
  6. Jengou

    Jengou

    Joined:
    Apr 23, 2008
    Messages:
    1
    THANK YOU, OH WOW. I registered just so I can say that <3
     
  7. Zack Barresse

    Zack Barresse

    Joined:
    Jul 25, 2004
    Messages:
    5,452
    ROFL!!

    Well, welcome to the [posting] board! :)
     
  8. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/540551

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice