Thank you all for your help with this - I appreciate it.
--
Thank you,
John Gregory
"T. Valko" wrote:
> Try this...
>
> =LEN(A1)-LEN(SUBSTITUTE(A1,"A",""))
>
> Note that this is case sensitive.
>
> If A1 = aBC123ABC the formula will return 1. Only the upper case "A" is
> being counted. Likewise, if the formula was:
>
> =LEN(A1)-LEN(SUBSTITUTE(A1,"a",""))
>
> Then in this case only the lower case "a" will be counted.
>
> If you want to ignore case then try this version:
>
> =LEN(A1)-LEN(SUBSTITUTE(UPPER(A1),UPPER("A"),""))
>
> That will count both lower and upper case "a" or "A".
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "JGreg7" <(E-Mail Removed)> wrote in message
> news:78A76E7A-4C89-4979-8869-(E-Mail Removed)...
> > Is there a way to count the number of times a specific character occurs in
> > a
> > specific cell?
> >
> > For example, if cell A1 has "ABC123ABC" and I wanted to count the number
> > of
> > occurances that "A" showed up, and wanted the out put to be in B1. In
> > this
> > example the desired result would equal "2".
> >
> > --
> > Thank you,
> > John Gregory
>
>
> .
>
|