#1   Report Post  
Posted to microsoft.public.excel.misc
armagan
 
Posts: n/a
Default text wrap delimeter


Hi,

I have a list which I am trying to sort. Some of the records contain 2
records in the same cell and have text wrap enabled (so one appears on
top of the other.

Is there a way to split them without manually editing each and every
cell?

I can't do a replace as there is no delimeter/separator (other than the
Alt-Enter used for text wrap)

ideally I need a routine which can be combined into a macro/VBA if
anyone can help.

cheers


--
armagan
------------------------------------------------------------------------
armagan's Profile: http://www.excelforum.com/member.php...o&userid=34237
View this thread: http://www.excelforum.com/showthread...hreadid=539893

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ronco
 
Posts: n/a
Default text wrap delimeter

Armagan, the ASCII character for Alt Enter is 10, therefore, you can separate
the two records in each cell.
In a blank column use the formula:
= LEFT(A1,LEN(A1)-FIND("*",SUBSTITUTE(A1,CHAR(10),"*",LEN(A1)-LEN
(SUBSTITUTE(A1,CHAR(10),""))))) to get the first record.

In a second blank column use the formula:

=RIGHT(A1,LEN(A1)-FIND("*",SUBSTITUTE(A1,CHAR(10),"*",LEN(A1)-LEN(SUBSTITUTE(A1,CHAR(10),""))))) to get the second record.

You can then sort how you need. I don't know exactly how to put this in
VBA, but maybe someone in the discussion group can help with that. Hope this
helps you get started solving your problem.


abc
def


"armagan" wrote:


Hi,

I have a list which I am trying to sort. Some of the records contain 2
records in the same cell and have text wrap enabled (so one appears on
top of the other.

Is there a way to split them without manually editing each and every
cell?

I can't do a replace as there is no delimeter/separator (other than the
Alt-Enter used for text wrap)

ideally I need a routine which can be combined into a macro/VBA if
anyone can help.

cheers


--
armagan
------------------------------------------------------------------------
armagan's Profile: http://www.excelforum.com/member.php...o&userid=34237
View this thread: http://www.excelforum.com/showthread...hreadid=539893


  #3   Report Post  
Posted to microsoft.public.excel.misc
armagan
 
Posts: n/a
Default text wrap delimeter


Cheers mate, that worked straight away

I'll try to find some way to work it into some VBA


--
armagan
------------------------------------------------------------------------
armagan's Profile: http://www.excelforum.com/member.php...o&userid=34237
View this thread: http://www.excelforum.com/showthread...hreadid=539893

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
I am using wrap text in excel, so why isn't all my text wrapping? GatorDawg123 Excel Discussion (Misc queries) 2 May 6th 06 05:52 PM
Just one cell in an Excel column won't text wrap. Kathleen New Users to Excel 1 January 21st 06 08:28 PM
How do I set text to top of cell next to wrap text in Excel? Carpenter Gary New Users to Excel 1 October 25th 05 06:26 PM
Wrap text ceases to function in Excel if cell exceeds 9 lines nycemail Excel Worksheet Functions 1 July 24th 05 06:09 PM
Concatenation formula loses text wrap formatting DFM Excel Discussion (Misc queries) 5 December 27th 04 01:45 PM


All times are GMT +1. The time now is 01:31 AM.

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

About Us

"It's about Microsoft Excel"