Forum Discussion

mingjzhu's avatar
mingjzhu
Copper Contributor
Jul 05, 2021
Solved

Find text value in a column that contains ";"

Hi All:   Trying to count how many times the word "apple" appears in a column where the word "apple" can be separated by "," or ";"? Example see below.   The value I expect is that the count of t...
  • HansVogelaar's avatar
    Jul 05, 2021

    mingjzhu 

    Let's say that the data are in A1:A4.

    =SUMPRODUCT(LEN(A1:A4)-LEN(SUBSTITUTE(A1:A4,"apple","")))/LEN("apple")

     

Resources