Extract a string from a cell

M

MrLarrier

I have a column of data in this format
Lastname, Firstname

I want to extract only the Lastname
 
R

RagDyeR

Try this:

=LEFT(A1,FIND(",",A1)-1)

Copy down as needed.
--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================


I have a column of data in this format
Lastname, Firstname

I want to extract only the Lastname
 
P

Pete_UK

Use this in a helper column:

=LEFT(A1,FIND(",",A1)-1)

and then copy down as required.

Hope this helps.

Pete
 
D

David Biddulph

=LEFT(A2,FIND(",",A2)-1) is one option.

Another method is to use Data/ Text to Columns, delimited by commas, and
tell it to skip the second column.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top