A family of Microsoft word processing software products for creating web, email, and print documents.
The functions required for this are not available in Word (see Use a formula in a Word table: Available functions). However, they are native to Excel, so you could move your list there, perform the desired actions and copy the results back to your Word list/table.
- Open Excel to a blank worksheet and copy your list of names to column A.
- Place the following formula in B1 and copy or fill down as necessary:
=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99))
This should result in something like the following,
3. Highlight the entire range of data (e.g. A1:B4 in this example) and Select Data then Sort from the Sort & Filter group.
4. Change the Column, Sort by to Column B and click OK in the lower right.
The result should look like this,
5. Copy column A back to your Word list/table.
If you have more columns of information than just the names, bring those along with the names to Excel and adjust the column references in the example as necessary.