Guidelines for Extracting First Names from a List
Hi Guys, I am trying to clean up the first names in my list. However, I am unable to fix the name starting with a single letter and then First name. For example: "D. Adam Walker" still gives me the output D. Attached my AI Prompt formula: Extract the first name from "Full Name" based on these rules: - If the name starts with "Dr.", return "Dr." followed by the first name. - If the name starts with a **single letter (e.g., "T Madden Alford" or "D.Adam Gevanter")**, ignore the first letter and return the next full word with only the first letter capitalized. - Otherwise, return just the first name with the first letter capitalized. Example Inputs & Expected Outputs: - "dr. john doe" → "Dr. John" - "Dr. Sarah Smith" → "Dr. Sarah" - "george WASHINGTON" → "George" - "jane doe" → "Jane" - "D.Adam Gevanter" → "Adam" - "M. John Smith" → "John" - "T Madden Alford" → "Madden"