A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi,
You may download my solution workbook from here.
Hope this helps.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
My data looks like this...
| Column A |
|---|
| Dr. Sam Karta Jr., CEO, Tallis Partners |
| Fred Sampson, III, Director, Aspen Institute |
| Ruth Kaufmann, PhD, Executive Director |
| Marci Cheng, CHRO |
I need Power Query to split this column so that job titles — but not the suffixes (e.g., PhD, Jr., III, etc.) — transfer to a new column. Not everyone has a suffix, and each row entry has a different number of commas, so I cannot reliably split using a delimiter.
Instead, I want PQ to look for the existence of a suffix (e.g., PhD, Jr., III, etc.) then split any remaining text (i.e., text after the suffix) into a new column. If a suffix does not exist (see Marci Cheng), PQ splits at the first comma.
So, the data would look like this...
| Column A | Column B |
|---|---|
| Dr. Sam Karta Jr. | CEO, Tallis Partners |
| Fred Sampson, III | Director, Aspen Institute |
| Ruth Kaufmann, PhD | Executive Director |
| Marci Cheng | CHRO |
Can you help? Thank you so much!
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Great solution. Thanks, Ashish! What courses or online resources do you recommend to learn these advanced features?
I'm hoping to keep this transformation in PQ, but I appreciate you demonstrating this in formula notation as well.