G Guest Oct 20, 2005 #1 Does anyone know a way to automatically count how many times a certain character counts in a text string?
Does anyone know a way to automatically count how many times a certain character counts in a text string?
G Guest Oct 20, 2005 #2 I meant to say: Does anyone know a way to automatically count how many times a certain character appears in a text string? (i.e. "w" appears 3 times in the string above)
I meant to say: Does anyone know a way to automatically count how many times a certain character appears in a text string? (i.e. "w" appears 3 times in the string above)
H Harlan Grove Oct 20, 2005 #3 Henrik wrote... Does anyone know a way to automatically count how many times a certain character counts in a text string? Click to expand... To count the number of Xs in s, try =LEN(s)-LEN(SUBSTITUTE(s,"X",""))
Henrik wrote... Does anyone know a way to automatically count how many times a certain character counts in a text string? Click to expand... To count the number of Xs in s, try =LEN(s)-LEN(SUBSTITUTE(s,"X",""))
P Peo Sjoblom Oct 20, 2005 #4 =LEN(A1)-LEN(SUBSTITUTE(A1,"a","")) will count the occurrence of a in cell A1, if you have a range with strings use =SUMPRODUCT((LEN(A1:A10)-LEN(SUBSTITUTE(A1:A10,"a",""))))
=LEN(A1)-LEN(SUBSTITUTE(A1,"a","")) will count the occurrence of a in cell A1, if you have a range with strings use =SUMPRODUCT((LEN(A1:A10)-LEN(SUBSTITUTE(A1:A10,"a",""))))
G Guest Oct 20, 2005 #5 FYI, I figured it out: =LEN(cell_ref)-LEN(SUBSTITUTE(cell_ref,"character",""))
R Ron Rosenfeld Oct 20, 2005 #6 Does anyone know a way to automatically count how many times a certain character counts in a text string? Click to expand... To count the number of appearances of a character in a text string: =LEN(A1)-LEN(SUBSTITUTE(A1,char_to_count,"")) --ron
Does anyone know a way to automatically count how many times a certain character counts in a text string? Click to expand... To count the number of appearances of a character in a text string: =LEN(A1)-LEN(SUBSTITUTE(A1,char_to_count,"")) --ron