Uppercase next Lowercase

Manolocs

Active Member
Joined
Mar 28, 2008
Messages
340
Hello, I have to search a long list only column A if there is any word with an Uppercase letter following by the second in Lowercase. Difficult to explain....
Column.........................Column
A.......................................B
Doris Angel.........................""
Ruper michael................Check This
Barack obama................Check This
Ryan Thomas......................""

I know how to capitalize the first letter of the words, but some of them can not be capitalized so I need to check if need or not. Thanks in advance.
 
Last edited:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Code:
Public Function BinComp(Val1, Val2)

BinComp = StrComp(Val1, Val2, 0) '0=Binary Compare

End Function


=IF(BinComp(B2,PROPER(B2)),"Check This","")
 
Upvote 0
@Fishboy Hi great idea so I could copy my data to your worksheet but I am getting the same error in yours, so I think the problem (I did not mention sorry) that are some cells has more than 5 words other only one, what I need is only check the second word if is lowercase and show the message. Sorry for the delay but I had to ask a PC to try, I was using Mac .
 
Upvote 0
@Fishboy Hi great idea so I could copy my data to your worksheet but I am getting the same error in yours, so I think the problem (I did not mention sorry) that are some cells has more than 5 words other only one, what I need is only check the second word if is lowercase and show the message. Sorry for the delay but I had to ask a PC to try, I was using Mac .
Ahh, my code unfortunately assumes that there is only one space in each cell and will probably misbehave when cells contain more.

Now that I know this additional parameter, I can at least try to recreate the issue at my end and see if I can figure out a solution.

[EDIT - Having tested with multiple words / spaces, I still cannot recreate the issue and these are the results of my latest test]


Excel 2010
AB
1Adam jonesCheck This
2John smithCheck This
3Joe Bloggs
4John Doe
5Testy mctestCheck This
6CARLS Clark
7MARY/PETER Dustin
8TOM/Paul harrisCheck This
9Testy mctesting testersonCheck This
10Lee Harvey Oswald
11test test test test testCheck This
12Test Test blah blah blah
Sheet1
 
Last edited:
Upvote 0
I think the problem (I did not mention sorry) that are some cells has more than 5 words other only one, what I need is only check the second word if is lowercase and show the message.

Which is why it would be a good idea to this..

please post a good representative set of the different possible options and the expected outcome for each
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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