#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Split a text

Dear All

I have in column E mix address with post codes
eg: Blythswood square
G12BG Glasgow

In the text the split between address and post code is by Enter

How can i split it into two columns F & G
I wne form data -- text to column but i do not know how to declare the
Enter symbol.
Any ideas?

Thansk in advance
Manos
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Split a text

Hi
I don't think this can be down with DataText to columns.

In cell B1 enter
=LEFT(A1,FIND(CHAR(10),A1)-1)
in cell C1 enter
=MID(A1,FIND(CHAR(10),A1)+1,255)
Copy down as far as required.

Then copy columns B:C and Paste SpecialValues back over the formulae to fix
the data.
--
Regards
Roger Govier



"Manos" wrote in message
...
Dear All

I have in column E mix address with post codes
eg: Blythswood square
G12BG Glasgow

In the text the split between address and post code is by Enter

How can i split it into two columns F & G
I wne form data -- text to column but i do not know how to declare the
Enter symbol.
Any ideas?

Thansk in advance
Manos



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Split a text

In column F enter this formula
=LEFT(A1,FIND("
",A1,1)-1)

In column G enter this formula

=LEFT(A1,FIND("
",A1,1)-1)

between quotation marks press ALT+ENTER.
--
Cheers

Rodrick


"Manos" wrote:

Dear All

I have in column E mix address with post codes
eg: Blythswood square
G12BG Glasgow

In the text the split between address and post code is by Enter

How can i split it into two columns F & G
I wne form data -- text to column but i do not know how to declare the
Enter symbol.
Any ideas?

Thansk in advance
Manos

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Split a text

On Wed, 17 Oct 2007 04:25:01 -0700, Manos
wrote:

Dear All

I have in column E mix address with post codes
eg: Blythswood square
G12BG Glasgow

In the text the split between address and post code is by Enter

How can i split it into two columns F & G
I wne form data -- text to column but i do not know how to declare the
Enter symbol.
Any ideas?

Thansk in advance
Manos


To use the line feed symbol as the delimeter, when you get to the "delimiter"
page in the text-to-columns wizard, select Other. With the cursor in the box
next to other, hold down <alt while you type ON THE NUMERIC KEYPAD "0 1 0"
(You must use the keypad, and not the numbers above the regular keyboard).

Then release the <alt and select Finish.
--ron
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Split a text

Thank you Both

"Roger Govier" wrote:

Hi
I don't think this can be down with DataText to columns.

In cell B1 enter
=LEFT(A1,FIND(CHAR(10),A1)-1)
in cell C1 enter
=MID(A1,FIND(CHAR(10),A1)+1,255)
Copy down as far as required.

Then copy columns B:C and Paste SpecialValues back over the formulae to fix
the data.
--
Regards
Roger Govier



"Manos" wrote in message
...
Dear All

I have in column E mix address with post codes
eg: Blythswood square
G12BG Glasgow

In the text the split between address and post code is by Enter

How can i split it into two columns F & G
I wne form data -- text to column but i do not know how to declare the
Enter symbol.
Any ideas?

Thansk in advance
Manos






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Split a text

Excellent Ron!

I had tried typing Alt Enter, and Char(10) into the box - all to no avail.
Didn't think about using your method.

--
Regards
Roger Govier



"Ron Rosenfeld" wrote in message
...
On Wed, 17 Oct 2007 04:25:01 -0700, Manos

wrote:

Dear All

I have in column E mix address with post codes
eg: Blythswood square
G12BG Glasgow

In the text the split between address and post code is by Enter

How can i split it into two columns F & G
I wne form data -- text to column but i do not know how to declare the
Enter symbol.
Any ideas?

Thansk in advance
Manos


To use the line feed symbol as the delimeter, when you get to the
"delimiter"
page in the text-to-columns wizard, select Other. With the cursor in the
box
next to other, hold down <alt while you type ON THE NUMERIC KEYPAD "0 1
0"
(You must use the keypad, and not the numbers above the regular keyboard).

Then release the <alt and select Finish.
--ron



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Split a text

CTRL + j also works in the "replace what" dialog to locate the linefeed Alt +
Enter


Gord Dibben MS Excel MVP

On Wed, 17 Oct 2007 13:10:23 +0100, "Roger Govier"
<rogerattechnology4NOSPAMu.co.uk wrote:

Excellent Ron!

I had tried typing Alt Enter, and Char(10) into the box - all to no avail.
Didn't think about using your method.


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Split a text

Thanks Gord.
That's two new things (at least) learned today!!!

--
Regards
Roger Govier



"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
CTRL + j also works in the "replace what" dialog to locate the linefeed
Alt +
Enter


Gord Dibben MS Excel MVP

On Wed, 17 Oct 2007 13:10:23 +0100, "Roger Govier"
<rogerattechnology4NOSPAMu.co.uk wrote:

Excellent Ron!

I had tried typing Alt Enter, and Char(10) into the box - all to no avail.
Didn't think about using your method.




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
Split text without using data-text to columns Jambruins Excel Discussion (Misc queries) 7 January 21st 06 02:16 PM
Split Text Gabe Excel Discussion (Misc queries) 6 January 4th 06 09:52 PM
How to split up bulk text?????? DJS1234 Excel Discussion (Misc queries) 5 October 13th 05 05:17 PM
Split text and number Jambruins Excel Discussion (Misc queries) 5 October 5th 05 09:56 PM
text cells end page how split to next. Text lost! Elaine Excel Discussion (Misc queries) 1 August 28th 05 05:48 PM


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