#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default Count letters

I have an E and an A in the cells but not both.
How can I count how many E's and how many A's
Thanks
Cheyenne
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Count letters


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

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


"Chey" wrote:

I have an E and an A in the cells but not both.
How can I count how many E's and how many A's
Thanks
Cheyenne

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default Count letters

I don't understand where do i put my range. It is A6:A275.
When I tried to change A1 to A6:A275 it says value.
Thanks
Cheyenne

"Toppers" wrote:


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

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


"Chey" wrote:

I have an E and an A in the cells but not both.
How can I count how many E's and how many A's
Thanks
Cheyenne

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Count letters

The formula counts the number of As OR Es in ONE cell. If you want to count
the number of As a or Es in a range of cells AND each cell has only ONE of
either letter:

=COUNTIF(A6:A275,"*A*")

Sorry if misunderstood your question.

HTH

"Chey" wrote:

I don't understand where do i put my range. It is A6:A275.
When I tried to change A1 to A6:A275 it says value.
Thanks
Cheyenne

"Toppers" wrote:


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

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


"Chey" wrote:

I have an E and an A in the cells but not both.
How can I count how many E's and how many A's
Thanks
Cheyenne

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default Count letters

Perfect thank you

"Toppers" wrote:

The formula counts the number of As OR Es in ONE cell. If you want to count
the number of As a or Es in a range of cells AND each cell has only ONE of
either letter:

=COUNTIF(A6:A275,"*A*")

Sorry if misunderstood your question.

HTH

"Chey" wrote:

I don't understand where do i put my range. It is A6:A275.
When I tried to change A1 to A6:A275 it says value.
Thanks
Cheyenne

"Toppers" wrote:


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

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


"Chey" wrote:

I have an E and an A in the cells but not both.
How can I count how many E's and how many A's
Thanks
Cheyenne

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
count number of letters in a string Wiley Excel Worksheet Functions 3 May 11th 06 06:54 PM
How do I count letters and numbers in a formula? Todd Excel Worksheet Functions 4 April 6th 06 04:25 AM
How do i count numbers and letters to find a total count of all Linda Excel Worksheet Functions 4 November 10th 05 04:51 PM
Count letters JIM.H. Excel Discussion (Misc queries) 4 July 4th 05 06:35 AM
Excell: count occurance of letters in a column Ispencer Excel Worksheet Functions 1 June 8th 05 05:56 PM


All times are GMT +1. The time now is 12:09 AM.

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

About Us

"It's about Microsoft Excel"