If you need to clean up names that are not in a proper case, you can use a simple formula based on PROPER functions.

In the example the formula in C5 is:


Generic formula



The PROPER function automatically reformats text so that all words are capitalized. At the same time, it lowercases all other text.

If you also need to strip out extra spaces in the names, you can wrap PROPER in the TRIM function:


This will strip any leading and trailing spaces, and convert runs of spaces to a single space.

Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.