I have the following Google Spreadsheet.
When users enter a name into any cell of column A of the sheet named "Unit Standards" I want them to enter that name in a particular format. That is, with the surname first in uppercase then a comma, then the first name in title case then if they are known by a different name that name to be title case in brackets e.g.
- BUSH, George
- TRUMP, Donald
- CLINTON, William (Bill)
- CARTER, James (Jimmy)
- SMITH-JONES, John
- ZETA-JONES, Catherine (Kate)
Someone else helped me with the following code which I have added to column A as a Data Validation.
=REGEXMATCH(A10,"^[A-Z]+\b[',']\s[A-Z]{1}[a-z]+\b(\s([A-Z][a-z]+\b))?$")
You can see by the following image that some of the inputs are in violation so the formula is not quite right.
I would appreciate some help with the code.


