Formula that creates Hyperlinks based on Match...but not when no Match is found.

jmpatrick

Active Member
Joined
Aug 17, 2016
Messages
485
Office Version
  1. 365
Platform
  1. Windows
Good morning!

I use this formula to create a hyperlink by matching values from a source column to a column on another Sheet. Works great except that it creates a hyperlink even if no match is found. I can't figure out how to change it so that no hyperlink is created if no match is found. Here's my formula:

Excel Formula:
=IFERROR(HYPERLINK(INDEX(Subdivisions!J:J,MATCH(AI5,Subdivisions!C:C,0)),INDEX(Subdivisions!G:G,MATCH(AI5,Subdivisions!C:C,0))),"")
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
How about
Excel Formula:
=LET(m,MATCH(AI5,Subdivisions!C:C,0),IF(ISNA(m),"",HYPERLINK(INDEX(Subdivisions!J:J,m),INDEX(Subdivisions!G:G,m))))
 
Upvote 1
Solution
How about
Excel Formula:
=LET(m,MATCH(AI5,Subdivisions!C:C,0),IF(ISNA(m),"",HYPERLINK(INDEX(Subdivisions!J:J,m),INDEX(Subdivisions!G:G,m))))

This works, but the cell still appears to have a hyperlink (even if clicking it does nothing). Is that something I have to live with?


screenshot3.jpg
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top