Need to parse the strings in excel with a single formula which has different patterns and rules listed below
Any . or space within a name was considered to be a delimiter. For example the full employee name of ‘A.B.C Bobby’ was considered to have 4 separate components (‘A.’, ‘B.’, ‘C’, and ‘Bobby’)
The last component of the parsed employee name always went into the Last Name field
If there were two component for the parsed employee name, the first part went into the First Name field, the last part went into Last Name
If there were three or more components for the parsed employee name, the first part went into First Name, the last part went into Last Name. Everything else went into Middle Name, with a single space in between any multiple parts of middle name components
Trials:
I am trying to use below formula but it does not work for all needs especially when there is a value like A.B.C.D.BOBBY where A. should be parsed as first name, B.C.D. as middle name and Bobby as Lastname
=IFERROR( MID(A2,SEARCH(".",A2)+1,SEARCH(".",A2,SEARCH(".",A2)+1)-SEARCH(".",A2)),IFERROR(MID(A2,SEARCH(".",A2)+1,SEARCH(" ",A2,SEARCH(".",A2)+1)-SEARCH(".",A2)-1),""))