Solved

Excel 2013 - Formula to count texts with capital letters

Posted on 2016-08-10
5
56 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 29

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 29

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 29

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 29

Expert Comment

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

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

This article will show you how to use shortcut menus in the Access run-time environment.
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 demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

803 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