Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
carlito_1985
 
Posts: n/a
Default Letter/Number Split


Hi everyone,
Im currently making a database by copying fields from another database,
and I have some problems with separating numbers and letters.
An example of what im trying to do is-
Trying to split

UNIT 7 5-9 WOON GARDENS
24 RYDER ROAD
6 JESTER COURT
11 GRADER ROAD
4 ALEN PLACE
7 WILENSON LANE
UNIT 1 FAR ROAD
SHOP 771 CANTON HWY

So there are 2 different cells. One containing the writing upto and
including the last number, and one with the remaining.
For example

Column A
UNIT 7 5-9
24
6
11
4
7
UNIT 1
SHOP 771

Column B
WOON GARDENS
RYDER ROAD
JESTER COURT
GRADER ROAD
ALEN PLACE
WILENSON LANE
FAR ROAD
CANTON HWY

Is this actually possible? I tried text to columns, but that didn't
really work too well. Any Ideas?
Thanks,
Andrew


--
carlito_1985
------------------------------------------------------------------------
carlito_1985's Profile: http://www.excelforum.com/member.php...o&userid=21390
View this thread: http://www.excelforum.com/showthread...hreadid=379592

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

First cell:
=LEFT(A1,MAX(ISNUMBER((MID(A1,ROW($1:$100),1)*1))* ROW($1:$100))+1)
Second:
=MID(A1,MAX(ISNUMBER((MID(A1,ROW($1:$100),1)*1))*R OW($1:$100))+2,99)

both are array formulae, so commit with Ctrl-Shift-Enter

--
HTH

Bob Phillips

"carlito_1985"
wrote in message
news:carlito_1985.1qpm6h_1118909106.9065@excelforu m-nospam.com...

Hi everyone,
Im currently making a database by copying fields from another database,
and I have some problems with separating numbers and letters.
An example of what im trying to do is-
Trying to split

UNIT 7 5-9 WOON GARDENS
24 RYDER ROAD
6 JESTER COURT
11 GRADER ROAD
4 ALEN PLACE
7 WILENSON LANE
UNIT 1 FAR ROAD
SHOP 771 CANTON HWY

So there are 2 different cells. One containing the writing upto and
including the last number, and one with the remaining.
For example

Column A
UNIT 7 5-9
24
6
11
4
7
UNIT 1
SHOP 771

Column B
WOON GARDENS
RYDER ROAD
JESTER COURT
GRADER ROAD
ALEN PLACE
WILENSON LANE
FAR ROAD
CANTON HWY

Is this actually possible? I tried text to columns, but that didn't
really work too well. Any Ideas?
Thanks,
Andrew


--
carlito_1985
------------------------------------------------------------------------
carlito_1985's Profile:

http://www.excelforum.com/member.php...o&userid=21390
View this thread: http://www.excelforum.com/showthread...hreadid=379592



  #3   Report Post  
Barb R.
 
Posts: n/a
Default

This will get you part of the way

=LEFT($A1,SEARCH(" ",$A1)-1) for everything before the first space
=MID($A1,SEARCH(" ",$A1)+1,255) for everything after the first space

If you want to do different things when the cell is UNIT or SHOP, you can do
that as well.


"carlito_1985" wrote:


Hi everyone,
Im currently making a database by copying fields from another database,
and I have some problems with separating numbers and letters.
An example of what im trying to do is-
Trying to split

UNIT 7 5-9 WOON GARDENS
24 RYDER ROAD
6 JESTER COURT
11 GRADER ROAD
4 ALEN PLACE
7 WILENSON LANE
UNIT 1 FAR ROAD
SHOP 771 CANTON HWY

So there are 2 different cells. One containing the writing upto and
including the last number, and one with the remaining.
For example

Column A
UNIT 7 5-9
24
6
11
4
7
UNIT 1
SHOP 771

Column B
WOON GARDENS
RYDER ROAD
JESTER COURT
GRADER ROAD
ALEN PLACE
WILENSON LANE
FAR ROAD
CANTON HWY

Is this actually possible? I tried text to columns, but that didn't
really work too well. Any Ideas?
Thanks,
Andrew


--
carlito_1985
------------------------------------------------------------------------
carlito_1985's Profile: http://www.excelforum.com/member.php...o&userid=21390
View this thread: http://www.excelforum.com/showthread...hreadid=379592


  #4   Report Post  
Laurent Longre
 
Posts: n/a
Default


Hello,

If you want a generic solution for such string manipulations, you could try the
REGEX.MID function (available at http://xcell05.free.fr/english, Morefunc.xll
addin). It uses regular expressions to split the text.

Column A : =REGEX.MID(A1,".*\d+")
Column B : =REGEX.MID(A1,"(?<!\d)[^\d]+$")

Cordially,

Laurent

carlito_1985 a écrit :
Hi everyone,
Im currently making a database by copying fields from another database,
and I have some problems with separating numbers and letters.
An example of what im trying to do is-
Trying to split

UNIT 7 5-9 WOON GARDENS
24 RYDER ROAD
6 JESTER COURT
11 GRADER ROAD
4 ALEN PLACE
7 WILENSON LANE
UNIT 1 FAR ROAD
SHOP 771 CANTON HWY

So there are 2 different cells. One containing the writing upto and
including the last number, and one with the remaining.
For example

Column A
UNIT 7 5-9
24
6
11
4
7
UNIT 1
SHOP 771

Column B
WOON GARDENS
RYDER ROAD
JESTER COURT
GRADER ROAD
ALEN PLACE
WILENSON LANE
FAR ROAD
CANTON HWY

Is this actually possible? I tried text to columns, but that didn't
really work too well. Any Ideas?
Thanks,
Andrew


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
How do I split the y-axis scale on a chart? Chaz Charts and Charting in Excel 2 April 27th 05 10:13 PM
How do I split a single cell in Excel ? tan Excel Discussion (Misc queries) 2 March 15th 05 01:09 PM
split a single column into 2 separate columns Eve Excel Worksheet Functions 2 March 14th 05 07:33 PM
Split combined date time data Mark Ada Excel Discussion (Misc queries) 4 December 1st 04 06:47 PM
Split combined date time data Mark Ada Excel Discussion (Misc queries) 1 December 1st 04 05:55 AM


All times are GMT +1. The time now is 05:22 PM.

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"