Note: The other languages of the website are Google-translated. Back to English
English English

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


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
Comments (8)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
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?
This comment was minimized by the moderator on the site
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
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
Hello Jeffrey, did you find the solution for your problem ? i am having the same problem
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
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
This comment was minimized by the moderator on the site
Same thing for me! itworked for a second, but idk what happened that when I went to do it a second time (on a different cell I needed the link), it all went to shit and I get the same message, "Cannot open the spoecified file". Please help!
This comment was minimized by the moderator on the site
I'm looking to use excel for a spec builder, where you can fin information via product codes, I currently have an if command followed by vlookup to drag the information from a hidden sheet into the file by using the product code, I want to drag a hyperlink over too but have been struggling to do so, is this possible? Also, I want the link to shpw custom text.. TIA
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations