Conditional format cells that contain links

robyrux

New Member
Joined
Oct 29, 2020
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi Team, I need to be able to highlight (preferably with conditional formatting) cells that contain hyperlinks. Is there a way to do this with a formula or function?

Thanks!
R
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi Robyrux
you can use this (B1) formula in your conditional format
Munkafüzet1
AB
1www.google.comIGAZ
Munka1
Cell Formulas
RangeFormula
B1B1=ISREF(A1)
 
Upvote 0
Oh, my bad,
morning is painfull :D
Put this into a modul, save the workbook with macro enabled

VBA Code:
Function ishyplink(target_cell As Range) As Integer
ishyplink = target_cell.Hyperlinks.Count
End Function

and you can use this as formula
asdasd.xlsm
AB
1www.google.com1
2something0
Munka1
Cell Formulas
RangeFormula
B1:B2B1=ishyplink(A1)
 
Upvote 0
Oh, my bad,
morning is painfull :D
Put this into a modul, save the workbook with macro enabled

VBA Code:
Function ishyplink(target_cell As Range) As Integer
ishyplink = target_cell.Hyperlinks.Count
End Function

and you can use this as formula
asdasd.xlsm
AB
1www.google.com1
2something0
Munka1
Cell Formulas
RangeFormula
B1:B2B1=ishyplink(A1)
Great! It works!
Thanks so much :)
 
Upvote 0
Glad to help, can you mark your thread is solved? TY
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,215
Members
448,554
Latest member
Gleisner2

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