+ Reply to Thread
Results 1 to 5 of 5

Transform entered Text into a clickable Hyperlink via VLOOKUP

Hybrid View

  1. #1
    Registered User
    Join Date
    03-15-2016
    Location
    Munich, Germany
    MS-Off Ver
    Office 2013
    Posts
    6

    Transform entered Text into a clickable Hyperlink via VLOOKUP

    Hi there,

    i am Stoney and new to this forum. Glad to meet you guys/girls

    I hope you have an idea how this could be achieved:

    I have an excel 2013 file with two sheets. When you enter a 5 digit Number (its a school training/lesson number) into B21 (for example) it matches the number against sheet 2 and writes the course/lesson/training name into C21. This works with a formula like this:

    =IF(TRIM(B21)="";"";VLOOKUP(TRIM(B21);ModuleSoSe2016!A:B;2;0))

    Sheet two has the following rows and data:

    A = Lesson number
    B = Lesson Name
    C = Type of Lesson
    D = URL of Lesson

    When i enter the lesson/course number into B21, i want to have excel to underline the lesson number and put the hyperlink information of Sheet 2, Row Dx in B21.

    Is that possible ? If so - how ? I cannot have the formula in B21 because i need to enter the 5 digit lesson number into that cell.

    Would be cool if anyone has an idea how to make this work

    Have a great time and thanks for your help in advance!

    Stoney

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Transform entered Text into a clickable Hyperlink via VLOOKUP

    Stoney

    Using formulas you could return the URL using VLOOKUP and use the HYPERLINK function to create a hyperlink but it would need to be in a different cell, ie not B21.

    The only way to have the hyperlink in the same cell as you have the course code/name would be to use VBA.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    03-15-2016
    Location
    Munich, Germany
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: Transform entered Text into a clickable Hyperlink via VLOOKUP

    Hi Norie,

    i was afraid of that

    Having it in a different cell is kind of unsexy i think. I cannot code VBA though

    Can someone help me with the VBA code ? Would really appreciate it.

    KR
    Stoney

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Transform entered Text into a clickable Hyperlink via VLOOKUP

    Stoney

    How about having it in the cell with the course name?

    Something like this, which would go in C21.
    Formula: copy to clipboard
    =IF(TRIM(B21)="";"";HYPERLINK(VLOOKUP(TRIM(B21);ModuleSoSe2016!A:D;4;0);VLOOKUP(TRIM(B21);ModuleSoSe2016!A:D;2;0)))

  5. #5
    Registered User
    Join Date
    03-15-2016
    Location
    Munich, Germany
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: Transform entered Text into a clickable Hyperlink via VLOOKUP

    Holy moly ! So simple and still good enough Good idea and it works.. guess i am too tired already.. worked on this excel sheet the last 6 hours.

    I guess i shall be happy with that

    Did i understand it right, that excel is not flexible enough to modify/rewrite a value in a cell that it needs for a formula in another cell ?

    Thanks alot Norie.
    Last edited by stonegate; 03-15-2016 at 08:37 PM.

+ 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. Make hyperlink display text in a pivot table clickable
    By jadedIntern in forum Excel General
    Replies: 0
    Last Post: 03-31-2015, 08:15 AM
  2. [SOLVED] MsgBox Text Based on Value entered in UserForm (Vlookup?)
    By silentcarl in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-18-2015, 08:14 AM
  3. Create Clickable Hyperlink in Word Document from excel Userform
    By craig62 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2014, 08:27 AM
  4. Using vlookup to return live, clickable hyperlink
    By thorpechris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-22-2013, 06:36 AM
  5. Replies: 5
    Last Post: 12-14-2012, 01:03 PM
  6. Excel 2007 : Clickable hyperlink that leads to a web page
    By imran9171 in forum Excel General
    Replies: 2
    Last Post: 02-29-2012, 09:14 PM
  7. VLookup result not clickable hyperlink
    By CHoedeman in forum Excel General
    Replies: 5
    Last Post: 02-16-2011, 08:54 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