Solved

Excel 2013 - Formula to count texts with capital letters

Posted on 2016-08-10
5
90 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
[X]
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
  • 4
5 Comments
 
LVL 31

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 31

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 31

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 31

Expert Comment

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

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

696 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