Extracting a substring

by  About
       

Problem:

Listed in column A are full or first names.
How could we create a new column B containing the first names extracted from each name in column A?

Solution:

Using the FIND, RIGHT and LEN text category functions in this IF statement:
=IF(ISNUMBER(FIND(“”,”",A2)),RIGHT(A2,LEN(A2)-FIND(“”,”",A2)-1),A2)

Example:

Names_______________First Names
Bush, George________George
Seinfeld, Jerry_____Jerry
Jordan, Michael_____Michael
Laura_______________Laura
Kate________________Kate

Screenshot // Extracting a substring
Extracting a substring



Leave a Reply

Your email address will not be published. Required fields are marked *


× 1 = four

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>