remove characters from a text under a condition

E

elaine216

Hello,

I know if you want to remove the last X characters, you can do it by

=left(A1,(len(A1)-X))


I want to remove any characters from a text that is longer than 35
characters.
ie, I want to remove characters 36th and onwards.

How can I do it?

Thanks.
Elaine.
 
D

David Biddulph

Hello,

I know if you want to remove the last X characters, you can do it by

=left(A1,(len(A1)-X))

I want to remove any characters from a text that is longer than 35
characters.
ie, I want to remove characters 36th and onwards.

How can I do it?

=LEFT(A1,35)

Did you look at Excel's help to see what the LEFT function does?
 
C

CLR

=LEFT(A1,$F$1) and type whatever number of characters you want to keep in
cell F1

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