View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Lars-Åke Aspelin[_2_] Lars-Åke Aspelin[_2_] is offline
external usenet poster
 
Posts: 913
Default count characters

On Sat, 23 Aug 2008 13:00:01 -0700, Rich (no
spam) wrote:

is their a formula to count how many times a character appears in on cell

thanks

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...lic.excel.misc



Try this formula:

=SUMPRODUCT(--(MID(A1,ROW(1:100),1)="x"))

where "x" is the character and A1 is the cell you are investigating.
Change the 100 if your data is longer than 100 characters.

Hope this helps / Lars-Åke