Hi
I have written the following formula to split a name field into first and last names. It also has an error check where the last name only is given.
It all works perfectly when there is a first and last name, but it misses off the first character when there is a surname only.
Can anyone help please?
=UPPER(IF(ISERROR(FIND(" ",A1,1)),LEFT(A1,FIND("",A1,1)-1),LEFT(A1,FIND(" ",A1,1))))
The above formula is used to find the leftmost character before the space and works perfectly every time.
=UPPER(IF(ISERROR(FIND(" ",Q3,1)),RIGHT(Q3,LEN(Q3)-FIND("",Q3,1)),RIGHT(Q3,LEN(Q3)-FIND(" ",Q3,1)-0)))
This formula works perfectly where there is a first name, but always returns the last name minus the first character where there is only a last name given.
I have attached a spreadsheet showing this.
Thanks
Ken
Bookmarks