How to lookup to return an active hyperlink in Excel?

In Excel, the VLOOKUP function can help us to return the corresponding value based on a specific cell data. But, if the lookup value is in URL hyperlink format, it will be displayed as plain text without the hyperlink as following screenshot shown. How could you keep the hyperlink format when using the VLOOKUP function?

doc lookup with hyperlinks 1

Lookup to return an active hyperlink with formula


arrow blue right bubble Lookup to return an active hyperlink with formula

To lookup and return the corresponding value with hyperlink, you can combine the Hyperlink and Vlookup functions to solve it, please do as this:

Enter this formula: =HYPERLINK(VLOOKUP(D2, $A$1:$B$8,2,FALSE)) into a blank cell where you want to output the result, then press Enter key, and the corresponding value with hyperlink has been returned at once, see screenshot:

doc lookup with hyperlinks 2

Notes:

1. In the above formula, D2 is the cell value which you want to return its corresponding data, A1:B8 is the data range that you want to use, the number 2 indicates the column number that your matched value is returned.

2. This formula is only applied to the hyperlinks which are URL websites or full path.


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Jeffrey · 5 months ago
    its work, using hyperlink and vlookup they will give the link, but the link is not working when you click it. it show " Cannot open specified file"

    anyone can help me. I want to vlookup the link at the same time when i press the link it will give the link value.
    • To post as a guest, your comment is unpublished.
      Emad · 3 months ago
      Hello Jeffrey, did you find the solution for your problem ? i am having the same problem


      • To post as a guest, your comment is unpublished.
        Dom · 2 months ago
        I am trying to fix this problem right now. It only works if you open up the file that you're pulling the hyperlink from.
        • To post as a guest, your comment is unpublished.
          Emad · 2 months ago
          i came up with a very long formula that did the job but it is very complex that if u have to add a raw you must edet everything


          =HYPERLINK(GetURL(INDIREKT(ADRESSE(VERGLEICH(links!$K$1,links!E6:E9) + 5, 7, 1, 1, "links"))),INDIREKT(ADRESSE(VERGLEICH(links!$K$1,links!E6:E9) + 5, 7, 1, 1, "links")))


          links is the name of a sheet i have and the GetURL function is a fuction I had to add that i got online... you can google that fuction

          kindly inform me if you get to an essiere solution
  • To post as a guest, your comment is unpublished.
    Abdul gofat · 1 years ago
    Bagaimana cara membuat hasil indek match yang ada hyperlink worksheet nya aktif. Atau mungkin ada cara lain untuk menampilkannhasil cari yg mengandung link sheet aktif
  • To post as a guest, your comment is unpublished.
    tonycunningham10 · 1 years ago
    This almost worked for me but I have a long list of hyperlinks to reference to and as the address’s are quite lengthy, I have used the “Text to display” function to shorten the text displayed.


    As I have done this, the hyperlink no longer works as it references the text displayed, not the correct address.


    Is is there anyway round this as I do not have space in spreadsheet to display the full address?