I am trying to count the number of times a sub-string appears within a column of string data in Excel. Please see the below example.
The column of string data (tweet
You are nearly there, use
=COUNTIF(A:A, "*"&B1&"*")
Caveat:
This counts the number of cells in A:A
that contain the string one or more times. It does not count the total number of instances of the string.
A very Simple Excel Solution for occurrence of x-string ("ABC") into y-string ("ABC 123 ABC 23dfABC"):
Number of Occurrence: len(substitute(y,x,x1)) - len(y)
Nomenclature for Understanding: x-string: "ABC" x1-string: "ABC_" y-string: "ABC 123 ABC 23dfABC" y1-string: ""ABC_ 123 ABC_ 23dfABC_"