DougStroud
Well-known Member
- Joined
- Aug 16, 2005
- Messages
- 2,976
- Office Version
- 365
- Platform
- MacOS
I would like to sum three unique characters in a range: D1-D70. The characters are *,+,-
Thanks....
Doug
Thanks....
Doug
What exactly do you mean by "sum three unique characters"... count them? Are each of these characters in a cell by themselves or are they mixed in with other text in the cell? If they are mixed in, can there be more than one of them mixed in the text?I would like to sum three unique characters in a range: D1-D70. The characters are *,+,-
Try these
+
=COUNTIF(D1:D70,"*+*")
-
=COUNTIF(D1:D70,"*-*")
*
=COUNTA(D1:D70)-COUNTIF(D1:D70,"*+*")-COUNTIF(D1:D70,"*-*")
If D1:D70 contains text (ie not formula) then use these:
=LEN($D1)-LEN(SUBSTITUTE($D1,"+",""))
=LEN($D1)-LEN(SUBSTITUTE($D1,"*",""))
=LEN($D1)-LEN(SUBSTITUTE($D1,"-",""))