Excel ??

I

Iservthee

I want to keep the first 15 characters in a column and delete everything
after those characters.
 
D

Don Guillett

have you tried?
=left(a2,15)
or
Sub leftif()
For Each c In Selection
c.Value = Left(c, 5)
Next
 
E

Edgar Thoemmes

If youre data starts in range A2 then enter formula =left(a2,15) in cell B2
and fill down.
 
J

JulieD

Hi

one way is to use a helper column - e.g. with your data starting in A1,
type in B1
=LEFT(A1,15)
and then move your mouse over the bottom right hand corner of B1 until you
see a + then double click - this will fill the formula down the column - now
select column B and copy, click on cell A1 and choose edit / paste special -
values

column B can now be deleted.
If you don't want to use a "helper" column - you can achieve what you want
using code - please post back if you'ld like information on how to do this.

Cheers
JulieD
 
C

CLR

Another way........

Select the column.....do Data > Text to columns > Fixed > and set a column
line where you want the break > then select the undesired columns and tick
"Do not import column"

Vaya con Dios,
Chuck, CABGx3
 

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