Deleting text from a column

B

bt707

I have a long column that has text in it.

Ex:

A1= joe1-g-mex.state.city
A2= bill22-g-mex.state.city
B3= mary-g-mex.state.city

I need to be able to remove everything from the dot (.) to the end
leaving only the first part that is up unto the (.) but not including
the (.)

To make it look like this:

A1= joe1-g-mex
A2= bill22-g-mex
B3= mary-g-mex


Thanks for any help!!!
 
F

Felipe

If you want to delete everything right of the first dot,
and all cells have at least one dot.

=LEFT(A1,FIND(".",A1)-1)
If text is in cell A1
 
K

Ken Wright

First back up your data, and then select all your data and do Data / Text To Columns / Delimited /
Put a full stop in the other field and tick other, and now click on each of the columns past the
first and choose the 'Do Not Import' option. Then hit OK
 

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