Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Can I find the number of letters in a cell?

I am trying to find a method of calculating the number of letters in a
particular cell... I can calculate the number of cells that have letter
entries, but I cannot find how to calculate the number of letters in a cell.
For example:

Cell B12: b,c,d

Cell B12: I would like to be able to develop a formula to get the number '3'
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Can I find the number of letters in a cell?

Try this:-

=IF(LEN(TRIM(B12))=0,0,LEN(TRIM(B12))-LEN(SUBSTITUTE(B12,",",""))+1)

Mike

"dave_laroche" wrote:

I am trying to find a method of calculating the number of letters in a
particular cell... I can calculate the number of cells that have letter
entries, but I cannot find how to calculate the number of letters in a cell.
For example:

Cell B12: b,c,d

Cell B12: I would like to be able to develop a formula to get the number '3'

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Can I find the number of letters in a cell?

If your cell may contain any combination of letters, numbers, punctuation, etc

Try something like this:

A1: a,b,c,1,23,4, Z,!~,#;;/

B1:
=SUMPRODUCT((CODE(UPPER(MID(A1,ROW($A$1:INDEX($A:$ A,LEN(A1),1)),1)))=65)*(CODE(UPPER(MID(A1,ROW($A$ 1:INDEX($A:$A,LEN(A1),1)),1)))<=90))

In the above example, B1 returns 4
(abcZ)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"dave_laroche" wrote:

I am trying to find a method of calculating the number of letters in a
particular cell... I can calculate the number of cells that have letter
entries, but I cannot find how to calculate the number of letters in a cell.
For example:

Cell B12: b,c,d

Cell B12: I would like to be able to develop a formula to get the number '3'

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Can I find the number of letters in a cell?

Shorter version of the formula I posted:

=SUMPRODUCT((CODE(UPPER(MID(A1,ROW($A$1:INDEX($A:$ A,LEN(A1),1)),1)))<{65,91})*{-1,1})

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Ron Coderre" wrote:

If your cell may contain any combination of letters, numbers, punctuation, etc

Try something like this:

A1: a,b,c,1,23,4, Z,!~,#;;/

B1:
=SUMPRODUCT((CODE(UPPER(MID(A1,ROW($A$1:INDEX($A:$ A,LEN(A1),1)),1)))=65)*(CODE(UPPER(MID(A1,ROW($A$ 1:INDEX($A:$A,LEN(A1),1)),1)))<=90))

In the above example, B1 returns 4
(abcZ)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"dave_laroche" wrote:

I am trying to find a method of calculating the number of letters in a
particular cell... I can calculate the number of cells that have letter
entries, but I cannot find how to calculate the number of letters in a cell.
For example:

Cell B12: b,c,d

Cell B12: I would like to be able to develop a formula to get the number '3'

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Can I find the number of letters in a cell?

Or, in the slim chance that your example will always be commas as indicated
and no spaces...

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

HTH
Regards,
Howard

"dave_laroche" wrote in message
...
I am trying to find a method of calculating the number of letters in a
particular cell... I can calculate the number of cells that have letter
entries, but I cannot find how to calculate the number of letters in a
cell.
For example:

Cell B12: b,c,d

Cell B12: I would like to be able to develop a formula to get the number
'3'



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
Search A Cell for Certain Letters Then Output a Number [email protected] Excel Discussion (Misc queries) 3 March 21st 07 04:55 PM
Counting the number of letters in a cell beefycj5 Excel Discussion (Misc queries) 2 June 1st 05 08:28 PM
How do I enter a formula in a cell so that letters= a number i.e.. Alex New Users to Excel 3 February 24th 05 01:09 AM
How do I enter a formula in a cell so that letters= a number i.e.. Alex Excel Worksheet Functions 1 February 23rd 05 11:26 AM
How do I enter a formula in a cell so that letters= a number i.e.. Alex Excel Discussion (Misc queries) 2 February 23rd 05 11:19 AM


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

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"