PC Review


Reply
Thread Tools Rate Thread

Counting the number of times a character occurs in a cell

 
 
exceluser
Guest
Posts: n/a
 
      31st Aug 2010
How can you count the number of times a character occurs in a single
cell ?

For example, A1 contains the text:

abc,def,ghi

If you were counting the number of times the comma character occurred
in A1, the correct answer is 2.
 
Reply With Quote
 
 
 
 
exceluser
Guest
Posts: n/a
 
      31st Aug 2010
Never mind.

I figured it out.

=LEN(A1)-LEN(SUBSTITUTE(A1,",",""))




Exceluser
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting no. of times a character occurs in a cell hsg Microsoft Excel Worksheet Functions 3 24th Mar 2009 06:49 PM
Counting number of times a value occurs da Microsoft Excel Misc 4 9th Sep 2008 03:51 PM
Counting the number of times more than 1 variable occurs chrisdedobb Microsoft Excel Misc 5 3rd Jan 2006 06:20 PM
Counting the number of times a specific character appears in a cell PCLIVE Microsoft Excel Worksheet Functions 3 4th Nov 2005 05:08 AM
Counting the number of times a character appears in a cell Gary Thomson Microsoft Excel Worksheet Functions 1 23rd Feb 2004 05:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:13 PM.