Identify if text field is upper or lower case

Erick

Active Member
Joined
Feb 26, 2003
Messages
362
I have a column that has texts, is there a way of using an if statement to identify if the text begins with an upper case or not?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi Erik,

The following will return "Yes" if the first character in cell A2 is uppercase, or else "No" is returned (change these as required):

=IF(EXACT(LEFT(A2,1),UPPER(LEFT(A2,1))),"Yes","No")

HTH

Robert
 
Upvote 0
Hi Erik,

The following will return "Yes" if the first character in cell A2 is uppercase, or else "No" is returned (change these as required):

=IF(EXACT(LEFT(A2,1),UPPER(LEFT(A2,1))),"Yes","No")

HTH

Robert

Thanks for that.

I also worked it out somehow, albeit, not as concise and as elegant as your solution. I used the 'CODE' command instead of 'EXACT' and compared the ASCII code if LEFT(A2,1) = UPPER(LEFT(A2,1)).

Thanks again. I didn't know about the 'EXACT' command and now I do.
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,283
Members
449,075
Latest member
staticfluids

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