36. Excel Tips - How many times does a letter appear in a cell ?

Nick's picture


Suppose you have a big string like: "XXX0000sdsds000000000" and you want to know how many times "0" appears.

Here's our data:
How-many-times-does-a-letter-appear-in-a-cell

The formula we use is:
=LEN(B3)-LEN(SUBSTITUTE(B3,"0",""))

Download Example Sheet to practise getting finding out how many times a letter appears in a string

Training Video - How many times does a letter appear in a cell ?

AttachmentSize
How-many-times-does-a-letter-appear-in-a-cell.xls17 KB

my issue

is nice to know how many time does a letter appaear in a cell,but now come's my question.. how many time does a number appaear in a column ? .EX: if i have 1 column A1,A100 full whit numbers end some of them reapet ,i whant to know how many time my number reapeat.Tks in advance end sorry for my bad engl. :)

Nick's picture

COUNTIF

use the function COUNTIF