Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Cell shatracter length limiting.

I am pasting data into a cell but want to limit it to a specific length. Is
there a function that will limit the text to the length required and carry
the remaining text onto the next row? Data validation does not work, it will
give me a warning but wont automatically cut the remaing text onto the next
row.

For example, copied text is 30 characters long. When i paste it into the
cell (which i want to limit to 20 characters long) it will automatically fill
one cell and paste remaining text into cell below.

Any help would be much appreciated
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 860
Default Cell shatracter length limiting.

Hi Bob.

Excel is not big on formatting. It may be better to paste into
Word first to get it nice and tidy and then then copy to Excel.
Not real pretty but at least you will achieve your goal.

HTH
Martin


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Cell shatracter length limiting.

Hi Bob

You can't make a Copy and Paste put the data into 2 separate cells.

Having pasted your copy you could format the receiving cell as the width
you want and
FormatCellsAlignmentWrap Text
the cell height will adjust as the remainder of the text wraps below the
first line.

Otherwise you would have to do it within a macro with something like

Range("B1") = Left(Range("A1"), 20)
Range("B2") = Mid(Range("A1"), 21, 10)

--
Regards

Roger Govier


"Bob" wrote in message
...
I am pasting data into a cell but want to limit it to a specific
length. Is
there a function that will limit the text to the length required and
carry
the remaining text onto the next row? Data validation does not work,
it will
give me a warning but wont automatically cut the remaing text onto the
next
row.

For example, copied text is 30 characters long. When i paste it into
the
cell (which i want to limit to 20 characters long) it will
automatically fill
one cell and paste remaining text into cell below.

Any help would be much appreciated



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
Sumproduct issues SteveDB1 Excel Worksheet Functions 25 June 3rd 09 04:58 PM
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Help with this conditional IF statement C-Dawg Excel Discussion (Misc queries) 3 May 15th 06 06:01 PM
resetting last cell jagdish.eashwar Excel Discussion (Misc queries) 11 March 31st 06 02:06 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM


All times are GMT +1. The time now is 08:30 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"