Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Excel 2013 - Formula to count texts with capital letters

Posted on 2016-08-10
5
62 Views
Last Modified: 2016-08-10
Dear Experts,

Could you please advise about an Excel formula, which counts how many cells are in a range with only capital letters?

In the attached example the result would be 3 (SOT,WBA,HUL)

Data
Thanks in advance,
0
Comment
Question by:csehz
  • 4
5 Comments
 
LVL 30

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41751473
Assuming the strings are in the range A1:A5, then try this.....

=SUMPRODUCT(--(EXACT(LEFT(A1:A5,1),UPPER(LEFT(A1:A5,1)))))

Open in new window

0
 
LVL 30

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 500 total points
ID: 41751475
I think I misunderstood your question, I assumed you were trying to compare the first character of the words.

Please try this tweaked formula....

=SUMPRODUCT(--(EXACT((A1:A5),UPPER(A1:A5))))

Open in new window

0
 
LVL 30

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41751478
And moreover if you want to ignore the numeric values and assuming the data is in the range A1:A6, please try this......

=SUMPRODUCT((ISTEXT(A1:A6))*(EXACT((A1:A6),UPPER(A1:A6))))
0
 
LVL 1

Author Closing Comment

by:csehz
ID: 41751479
Thank you very much for your regular help, it works of course
0
 
LVL 30

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41751482
You're welcome. Glad I could help this time also. :)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question