tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,926
- Office Version
- 365
- 2019
- Platform
- Windows
I have a column of data and I want to find how many semicolons are in that column.
So for example:
I would expect to return 3.
However, for:
I expect to return 7.
I tried using:
but it only returned 4 for my second example.
Can someone please point me in the right direction?
Thanks
EDIT SORTED:
I found the answer:
but can someone please explain what the formula is doing.
Thanks again.
So for example:
Rich (BB code):
a;
b;
c
d;
I would expect to return 3.
However, for:
Rich (BB code):
e;f;
g;
h;i;j;
k;
I expect to return 7.
I tried using:
Rich (BB code):
=COUNTIF(A:A,";"))
but it only returned 4 for my second example.
Can someone please point me in the right direction?
Thanks
EDIT SORTED:
I found the answer:
Rich (BB code):
=SUM((LEN(A:A)-LEN(SUBSTITUTE(A:A,";","")))/LEN(";"))
but can someone please explain what the formula is doing.
Thanks again.
Last edited: