If no cells meet criteria, COUNTIF returns zero.
The asterisk (*) is awildcardfor one or more characters.
Byconcatenatingasterisks before and after the value in D5, the formula will count the value as a substring.
In other words, it will count the value if it appears anywhere inside any cell in the range.
Any positive result means the value was found.
With IF
You cannestthis formula inside theIF functionas the logical test.
COUNTIF can be used to count…