Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Wowbagger
 
Posts: n/a
Default Text to columns, split at first space only

I have a 2500 line column of street addresses along the lines of (123 E
Grand Maple). How can I split this column into two columns, first column
only the numeric portion, second column only the street portion even though
the street portion may contain spaces?

For simplicity's sake I can assume that the first space in the address
represents where the split should occur and that any subsequent spaces
should be ignored.


  #2   Report Post  
Posted to microsoft.public.excel.newusers
Trevor Shuttleworth
 
Posts: n/a
Default Text to columns, split at first space only

Assuming the addresses start in cell A2

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

=RIGHT(A2,LEN(A2)-FIND(" ",A2))

And drag down ...

Regards

Trevor


"Wowbagger" <none wrote in message
...
I have a 2500 line column of street addresses along the lines of (123 E
Grand Maple). How can I split this column into two columns, first column
only the numeric portion, second column only the street portion even though
the street portion may contain spaces?

For simplicity's sake I can assume that the first space in the address
represents where the split should occur and that any subsequent spaces
should be ignored.



  #3   Report Post  
Posted to microsoft.public.excel.newusers
Aussie_Striker
 
Posts: n/a
Default Text to columns, split at first space only


I have a similar problem however I have data that has 2 spaces and I
need the numeral at the end. With the formula above I get the word and
numeral.

ie
cell = word word: number

need result
number

I had tried RIGHT(B143,FIND(" ",B143)-9) however the number is not
always the same number of digits and it sometimes gives a result
including part of the text before it, or not all of the number.


--
Aussie_Striker
------------------------------------------------------------------------
Aussie_Striker's Profile: http://www.excelforum.com/member.php...o&userid=33710
View this thread: http://www.excelforum.com/showthread...hreadid=523252

  #4   Report Post  
Posted to microsoft.public.excel.newusers
Trevor Shuttleworth
 
Posts: n/a
Default Text to columns, split at first space only

Try:

=VALUE(RIGHT(B143,LEN(B143)-1-FIND(" ",B143)))

Regards

Trevor


"Aussie_Striker"
<Aussie_Striker.26m8iy_1145625304.4886@excelforu m-nospam.com wrote in
message news:Aussie_Striker.26m8iy_1145625304.4886@excelfo rum-nospam.com...

I have a similar problem however I have data that has 2 spaces and I
need the numeral at the end. With the formula above I get the word and
numeral.

ie
cell = word word: number

need result
number

I had tried RIGHT(B143,FIND(" ",B143)-9) however the number is not
always the same number of digits and it sometimes gives a result
including part of the text before it, or not all of the number.


--
Aussie_Striker
------------------------------------------------------------------------
Aussie_Striker's Profile:
http://www.excelforum.com/member.php...o&userid=33710
View this thread: http://www.excelforum.com/showthread...hreadid=523252



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 Gabe Excel Discussion (Misc queries) 6 January 4th 06 09:52 PM
Split text and number Jambruins Excel Discussion (Misc queries) 5 October 5th 05 09:56 PM
Blank space gets inserted after text Ros M New Users to Excel 2 September 26th 05 02:07 PM
place text seperated by a space in a column into seperate columns hobiedog Excel Worksheet Functions 2 June 27th 05 04:25 PM
Text To Columns Mike Excel Worksheet Functions 3 December 31st 04 11:22 PM


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