If you want to return the Count of one string within another then you can actually use a Substitute and test length of substituted string versus original and divide the difference by length of sub string removed, eg:
where A1 holds string being searched for and A2 the string being compared.
The same logic can be applied in terms of VBA if needed.
Irrespective of whether you use VBA/formula it's often nec. to apply some sort of delimiter to both strings to avoid false positive matches (not illustrated here).
Bookmarks