How to Count the Number of a Specific Character in a Cell with Excel VBA

前端 未结 6 914
忘掉有多难
忘掉有多难 2021-01-14 22:26

I have a number of items in cells that are separated by dashes. I\'m trying to normalize the database by splitting rows so that each row contains only one entry. How do you

6条回答
  •  时光取名叫无心
    2021-01-14 22:42

    Using hint from ron's function above I've created this formula and it worked fine :

    =LEN(A1) - LEN(SUBSTITUTE(A1, "-", ""))
    

提交回复
热议问题