Counting Captial Letters!

jgthtrotih

Well-known Member
Joined
Aug 28, 2009
Messages
568
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
hi,

this topic is semi-related to to the link below..its not need to look at it..its just for reference.

basically in this topic i just need help condensing the formula in cell "C18"

it just counts the capital letters in cell "B18"

http://www.mrexcel.com/forum/search.php?searchid=1894488

Excel Workbook
ABC
18Micheal Johnson JonesM. J. J.3
19United States of AmericaU. S. A.3
20Laugh Out LoudL. O. L.3
Sheet7


Thanks!
 
Counting no of captial letters without helper column

A18 : =Micheal Johnson Jones

C18, formula :

=SUMPRODUCT(LEN(A18)-LEN(SUBSTITUTE(A18,CHAR(ROW($65:$90)),)))

or,

=INDEX(FREQUENCY(CODE(MID(A18,ROW($1:$255),1)&"~"),{64,91}),2)

Regards
Bosco
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
bosco yip,

Thanks much for your formulas!

Thanks!

Happy Holidays!
 
Upvote 0
Neat formulas! (y) I missed the point of Armando's formula - yes, works on longer strings too.
 
Upvote 0
Counting no of captial letters without helper column

A18 : =Micheal Johnson Jones

C18, formula :

=SUMPRODUCT(LEN(A18)-LEN(SUBSTITUTE(A18,CHAR(ROW($65:$90)),)))

or,

=INDEX(FREQUENCY(CODE(MID(A18,ROW($1:$255),1)&"~"),{64,91}),2)
Those will work but are susceptible to row insertions. Making the ROW ref absolute doesn't help.

The only way to prevent row insertions from affecting the formulas is to either use INDIRECT or use the INDEX method like in Domenic's formula.
 
Upvote 0
#NAME?,

Thank You soo much in taking the time to write out that extremely in depth (for me at least) explanation on how Domenic's forumla works!..i was wondering where those numbers (77.5) were coming form and how you got them now i know!...you guys never fail me!

Thanks!
You're welcome! :cool:

I like explaining things. When you go step by step and see what's happening those complex formulas aren't so complex after all!
 
Upvote 0
To All That Help With This Matter!,

Thank you all for your inputs and or forumlas! i really appreciate all the help.

This Site Is The Best!

Happy Holidays!

Thanks!
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,412
Members
448,959
Latest member
camelliaCase

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top