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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
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,216,086
Messages
6,128,734
Members
449,466
Latest member
Peter Juhnke

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