If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Extract Surname from text
Can you help me write a formula to extract the surname for a text.
For example, Text 1. Peter V Crazy 2. James Van-Cleef 3. N N M B Chan Results 1. Crazy 2. Van-Cleef 3. Chan Thanks. |
#2
|
|||
|
|||
Extract Surname from text
=MID(A1,FIND("~",SUBSTITUTE(A1," ","~",LEN(A1)-LEN(SUBSTITUTE(A1,"
",""))))+1,9999) -- Gary''s Student - gsnu200908 "nc" wrote: Can you help me write a formula to extract the surname for a text. For example, Text 1. Peter V Crazy 2. James Van-Cleef 3. N N M B Chan Results 1. Crazy 2. Van-Cleef 3. Chan Thanks. |
#3
|
|||
|
|||
Extract Surname from text
Hi,
=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",LEN(A1))),LEN(A1))) Mike "nc" wrote: Can you help me write a formula to extract the surname for a text. For example, Text 1. Peter V Crazy 2. James Van-Cleef 3. N N M B Chan Results 1. Crazy 2. Van-Cleef 3. Chan Thanks. |
Thread Tools | |
Display Modes | |
|
|