Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 516
Default Count # of Capitalized Characters

Is there a way to count the number of capitalized characters in a text cell?
For example, a cell value of "TTest" would return a result of 2.
Any help is greatly appreciated.

ME
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Count # of Capitalized Characters

This can be done with an array formula Matt. Say you had the word TTesT in
cell G41...

The following formula, entered into cell H41, should return 3:

=SUM(LEN(G41)-LEN(SUBSTITUTE(G41,CHAR(ROW(INDIRECT("65:90"))),"" )))

Remember, enter as array formula.

"Matt" wrote in message
...
Is there a way to count the number of capitalized characters in a text
cell?
For example, a cell value of "TTest" would return a result of 2.
Any help is greatly appreciated.

ME



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Count # of Capitalized Characters

Or just use =sumproduct():

=SUMPRODUCT(LEN(a1)-LEN(SUBSTITUTE(a1,CHAR(ROW(INDIRECT("65:90"))),"") ))

(I changed the cell address to A1 from G41, too.)

figdatbong wrote:

This can be done with an array formula Matt. Say you had the word TTesT in
cell G41...

The following formula, entered into cell H41, should return 3:

=SUM(LEN(G41)-LEN(SUBSTITUTE(G41,CHAR(ROW(INDIRECT("65:90"))),"" )))

Remember, enter as array formula.

"Matt" wrote in message
...
Is there a way to count the number of capitalized characters in a text
cell?
For example, a cell value of "TTest" would return a result of 2.
Any help is greatly appreciated.

ME


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Count # of Capitalized Characters

Hi Matt

One way
=SUMPRODUCT((CODE(MID(A1,ROW(INDIRECT("1:"&LEN(A1) )),1))64)*
(CODE(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))<97))

--
Regards
Roger Govier

"Matt" wrote in message
...
Is there a way to count the number of capitalized characters in a text
cell?
For example, a cell value of "TTest" would return a result of 2.
Any help is greatly appreciated.

ME


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
How to extract capitalized group in text string newbie Excel Worksheet Functions 9 August 27th 08 07:26 PM
count characters Rich[_2_] Excel Discussion (Misc queries) 2 August 23rd 08 09:14 PM
CAPITALIZED ALL WORDS FROM WROKSHEET convert all capital letter from excel Excel Discussion (Misc queries) 2 May 1st 06 01:40 PM
Count Characters sjs Excel Worksheet Functions 6 December 9th 05 09:40 PM
convert capitalized text to small text (with Capitalized names an trailboss2 Excel Discussion (Misc queries) 2 October 5th 05 10:45 PM


All times are GMT +1. The time now is 03:22 PM.

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"