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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Not sure it will cover all eventualities but this may help

=IF(CODE(MID(A1,FIND(" ",A1)+1,1)) > =97,"Check","OK")
 
Upvote 0
Here is another possible option based on the examples:


Excel 2013
AB
2Doris Angel 
3Ruper michaelCheck This
4Barack obamaCheck This
5Ryan Thomas
Sheet1
Cell Formulas
RangeFormula
B2=IF(EXACT(A2,PROPER(A2)),"","Check This")
 
Upvote 0
Hi FormR, it returns all cells as "Check This", there are words that all letters as in Uppercase and the next word is not.
 
Upvote 0
Like: JOHN andersen, MIKE HUGHS, CARLS Clark.
In some cells there is "/" like MARY/PETER Dustin
 
Last edited:
Upvote 0
Possible VBA solution, assuming the values are all in column A:

Code:
Sub FlagIncorrectCase()
Application.ScreenUpdating = False
Dim SecondWord As String
Dim Result As String
Dim Cell As Range, cRange As Range
LastRow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row
        Set cRange = Range("A1:A" & LastRow)
            For Each Cell In cRange
                SecondWord = Cell.Value
                    Result = Trim(Split(SecondWord, " ")(1))
                        Cell.Offset(0, 1).Value = Result
                                    If UCase(Left(Cell.Offset(0, 1), 1)) = Left(Cell.Offset(0, 1), 1) Then
                                        Cell.Offset(0, 1).Value = ""
                                    Else
                                        Cell.Offset(0, 1).Value = "Check This"
                                    End If
            Next Cell
Application.ScreenUpdating = True
End Sub
 
Upvote 0
Like: JOHN andersen, MIKE HUGHS, CARLS Clark.
In some cells there is "/" like MARY/PETER Dustin

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

Forum statistics

Threads
1,223,228
Messages
6,170,874
Members
452,363
Latest member
merico17

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