count how many times I've got the same character in text from several cells

charlie92_uk

New Member
Joined
Jan 11, 2012
Messages
31
Hi smart people!

this should be not too difficult for you... ;)

I need to count how many times I've got, for instance, "a" in several cells where I typed some text...
I would need a formula where I can indicate the letter I want and the range of cells where to look at, and having as result how many occurances there are...
If you are very good :) instead of a single letter, maybe a sequence of letters... but this is an extra!

thanks for your help!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi Dave,

In fact this was my first try, but it didn't work...
If in a cell I type "assessment", I would like a formula that counts in the text what I want, for ex "s", and in this case it returns 4...
COUNTIF counts how many cells satisfy my request, it doesn't work inside the cell itself... at least I can't, maybe somebody else can...

thanks
 
Upvote 0
Try

=LEN(A1)-LEN(SUBSTITUTE(A1,"s","")) where A1 contains the word.
 
Upvote 0

Forum statistics

Threads
1,214,808
Messages
6,121,686
Members
449,048
Latest member
81jamesacct

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top