Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default How to cut off characters in a text column

Hello

In my Excel file there is a column with text data
where the data consist of lots of characters.
Only n characters in the column for each record
are really important.
The question is how to cut off (delete) all characters
from n+1 to the end automatically.

The exmple which shows one of records:
originally the column contains:
qwer tyuiopa csdf ghjkvlzxc vbnm qew gfiwbv lwbvci
the expected result:
qwer tyuiopa csdf ghjkvlzxc vb
where the number n is equal to 30.

How to do it automatically?
If I put the number n as a width of column it'll result
on the display but not in printing or MailMerge process.

I'd be very grateful for your help.

Regards
abc
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default How to cut off characters in a text column

Put a formula in a new column then pste the results of the formula back into
the orignal cells using paste special value only

1) In new column =left(A1,30)
2) copy the formula down the new column
3) Copy New column
4) Select old column and using paste special with value only selected paste
data back into original column

"abc" wrote:

Hello

In my Excel file there is a column with text data
where the data consist of lots of characters.
Only n characters in the column for each record
are really important.
The question is how to cut off (delete) all characters
from n+1 to the end automatically.

The exmple which shows one of records:
originally the column contains:
qwer tyuiopa csdf ghjkvlzxc vbnm qew gfiwbv lwbvci
the expected result:
qwer tyuiopa csdf ghjkvlzxc vb
where the number n is equal to 30.

How to do it automatically?
If I put the number n as a width of column it'll result
on the display but not in printing or MailMerge process.

I'd be very grateful for your help.

Regards
abc

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 118
Default How to cut off characters in a text column

Hi

Try this fomula:
=LEFT(A1,30)

where A1 contains your text and 30 is the number of characters from the left
that you want to keep.

If this helps please click "Yes"
<<<<<<<<<<

"abc" wrote:

Hello

In my Excel file there is a column with text data
where the data consist of lots of characters.
Only n characters in the column for each record
are really important.
The question is how to cut off (delete) all characters
from n+1 to the end automatically.

The exmple which shows one of records:
originally the column contains:
qwer tyuiopa csdf ghjkvlzxc vbnm qew gfiwbv lwbvci
the expected result:
qwer tyuiopa csdf ghjkvlzxc vb
where the number n is equal to 30.

How to do it automatically?
If I put the number n as a width of column it'll result
on the display but not in printing or MailMerge process.

I'd be very grateful for your help.

Regards
abc

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default How to cut off characters in a text column


Thank you very much, both of you.

That works, except that it must be:
=left(A1;30) not =left(A1,30)

Thanks again and best regards
abc
Reply
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
Set the number of characters in a column bicheno Excel Discussion (Misc queries) 0 March 28th 07 02:14 AM
Function to move text 65 characters to next row in column? Nat1 Excel Worksheet Functions 7 December 13th 06 05:23 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 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
vlookup first 4 characters only in a column Gus Excel Discussion (Misc queries) 6 February 20th 05 04:41 PM


All times are GMT +1. The time now is 06:54 AM.

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"