I have some data where I'm trying to separate player names from a series of a finite set of acronym-based attributes that are added to the end of the player's name using Power Query. The number of attributes varies from player to player. There are 20 or so known attributes like UER, RC, COR and all are in all caps. Things are further complicated by suffixes after the name, like Jr., Sr., etc. Here is an example of the data:
| Data |
|---|
| Bob Brenly |
| Jamie Moyer |
| Cal Ripken, Jr. |
| Ken Caminiti UER |
| Kenny Rogers RC |
| Lloyd McClendon ERR |
| Lloyd McClendon COR, RC |
I want a table that looks like this:
| Name | Attributes |
|---|---|
| Bob Brenly | |
| Jamie Moyer | |
| Cal Ripken, Jr. | |
| Ken Caminiti | UER |
| Kenny Rogers | RC |
| Lloyd McClendon | ERR |
| Lloyd McClendon | COR, ERR |
I've tried all sorts of column splitting, columns by example, etc. but been unable to separate this content without also pulling the Jr., Sr., etc. into the Attributes column. Any thoughts on how to do this correctly using either Power Query or even Excel?



I can't figure out how to do it in a single step, but you can try looking for the last lowercase (or period) and using that as an index to split on.