LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 791
Default Cut the last 20 characters out of a text string

Hi, I have a column with text in each cell but the length of the text string
varies in each cell. However I would like to remove the last 20 characters of
the text string.

I could do this if I wanted to only show the last 20 characters by using
right(a1,20) but I cannot use the left function because the length of the
text string varies depending on the name of the person.

EG The first 2 cells are

Lott M 123456789101234567890
Peterson D 123456789101234567890

And I would like them to say

Lott M
Peterson D

I'm sure there will be a simple way of doing this but can't find one.

Thanks in advance.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I remove unwanted characters within a text string. bill Excel Discussion (Misc queries) 2 February 6th 09 01:15 AM
Text String - Specific Characters Kiser Excel Worksheet Functions 6 February 10th 06 02:43 AM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 09:56 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 12:25 AM
Insert characters in a text string jamae918 Excel Worksheet Functions 1 March 28th 05 10:04 PM


All times are GMT +1. The time now is 07:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"