Forum Discussion
PHILIP ROCHESTER
Nov 11, 2018Brass Contributor
COUNT CELLS THAT ARE NOT HYPERLINKED OR HAVE A CELL COLOR
Hi i have a worksheet in Excel where i need to count cells (with names, omitting blanks), that have not been hyperlinked (the hyperlinked cells are colored green) and transfer result to a list. I ne...
- Nov 11, 2018
See the attached example.
You can get what you need, by using UDF and COUNTA function.
I have put as an example in T2 this =COUNTA(B2:Q2)-HyperlinkFound(B2:Q2)
and the UDF embedded in the workbook is this
Public Function HyperlinkFound(Rng As Range) HyperlinkFound = Rng.Hyperlinks.Count End Function
PHILIP ROCHESTER
Nov 20, 2018Brass Contributor
Hi Jamil
thanks for this, it works a treat. However, can i have it either to auto calculate or be ran from button click (Active X button). I have tried to link it to a button, but cant get it to run
thanks
Phil
Jamil
Nov 20, 2018Bronze Contributor
Hi Philip,
I have attached the version that you can populate the formula via macrobutton.