COUNTIF (complex) - Google Sheets

rlong98

New Member
Joined
Dec 6, 2019
Messages
11
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
  2. Web
Hello,

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

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

I keep getting 0

Thank you!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,223,666
Messages
6,173,666
Members
452,527
Latest member
ineedexcelhelptoday

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