I had users input data, and some input last name, first name while others input first name last name. I was trying to write a formula that would if the cell contains a comma, grab the right of the comma, then the left, but if the cell does not contain a comma then just grab the cell value. I think I am close with what I have below, but it is not doing exactly what I am after
And here is sample data and desired output![]()
=IFERROR(LEFT(A2, FIND(",", A2, 1)), A2)
Current Format Desired Format
Jones, Jackie Jackie Jones
Bob Hornclaw Bob Hornclaw
jackson, jim jim jackson
Bookmarks