Hello,
I'm puzzled on this one
I have a formula in Conditional Formatting
![Capture1.PNG Capture1.PNG](https://www.mrexcel.com/board/data/attachments/9/9185-97040b546d352cb733cf3a0df582cfec.jpg?hash=lwQLVG01LL)
This works when I type in a phrase in B1 and it will Highlight all that have some or more of that phrase
GOAL - I want to use that same code in an COUNTIF
I would think that if the first code line works in Conditional Format and highlights the cells, that I could use it in a COUNTIF
![Capture.PNG Capture.PNG](https://www.mrexcel.com/board/data/attachments/9/9186-21b9f6111bce5085f7488b547ce7e6e9.jpg?hash=Ibn2ERvOUI)
I keep getting 0
Thank you!
I'm puzzled on this one
I have a formula in Conditional Formatting
VBA Code:
=NOT(ISERROR(FIND(LOWER(A5),LOWER($B$1))))
![Capture1.PNG Capture1.PNG](https://www.mrexcel.com/board/data/attachments/9/9185-97040b546d352cb733cf3a0df582cfec.jpg?hash=lwQLVG01LL)
This works when I type in a phrase in B1 and it will Highlight all that have some or more of that phrase
GOAL - I want to use that same code in an COUNTIF
Code:
=COUNTIF(A5:A30,NOT(ISERROR(FIND(LOWER(A4),LOWER($B$1)))))
I would think that if the first code line works in Conditional Format and highlights the cells, that I could use it in a COUNTIF
![Capture.PNG Capture.PNG](https://www.mrexcel.com/board/data/attachments/9/9186-21b9f6111bce5085f7488b547ce7e6e9.jpg?hash=Ibn2ERvOUI)
I keep getting 0
Thank you!