Left Trim

K

Kerry Schneider

Looking to left trim a cell to a specific character. i.e.
I have a column with "lastname, firstname". I wish to trim
to lastname only, is there a way to request a trim to the
comma? thanks...K
 
P

Peo Sjoblom

One way

select the column, do data>text to columns, delimited, click next,
select comma as delimiter, click next, click in the right hand
column to select it in the data preview window, select do not
import (skip), click finish
 
A

Adrian

Try this: =REPLACE(A1,1,LEN(A1),LEFT(A1,FIND(",",A1)-1))

Not as elegant as the other options though!
 

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