Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Counting specific characters in a cell

Hello,

Can someone help me out.
I'd tried to find a formula which shows for me how many times a
specific character, for example the letter "a", is written in a cell.

Example:

cell a2: "this is a test" Cell b2 "3" (= character s exist 3
times in cell a2).

regards,
Johan
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Counting specific characters in a cell

Try this

=LEN(A2)-LEN(SUBSTITUTE(A2,"s",""))

Mike

"johan" wrote:

Hello,

Can someone help me out.
I'd tried to find a formula which shows for me how many times a
specific character, for example the letter "a", is written in a cell.

Example:

cell a2: "this is a test" Cell b2 "3" (= character s exist 3
times in cell a2).

regards,
Johan

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Counting specific characters in a cell

Thanks a lot.

Works very well.

regards,
Johan
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting characters within a cell Alco Engineer Excel Worksheet Functions 5 November 4th 08 07:08 PM
Counting characters in a cell Laura Henderson Excel Discussion (Misc queries) 5 September 16th 08 06:41 PM
Counting characters in multiple rows when rows meet specific criteria news.virginmedia.com Excel Worksheet Functions 3 June 28th 08 09:03 PM
counting characters in a cell Ram Excel Discussion (Misc queries) 3 July 29th 06 05:04 PM
Counting Characters in a Cell carl Excel Worksheet Functions 2 February 4th 05 05:00 PM


All times are GMT +1. The time now is 10:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"