Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
gbeard
 
Posts: n/a
Default another text to column problem

I have a sheet with data in 4 columns. Column A is the clients name,
address and city. Column B is the state the client is in. Column C is the
zip code of the client. And Column D is the clients phone number.
I need to break up Column A into 3 columns so that the clients name is in
Column A, their street address is in Column B and their city name is in
Column C. The length of the clients names, address' and city are all
different lengths. There are no punctuation marks. Some city names have 1
word, some have 2 and some even 3.
Is there a way to break this column into 3 columns?

Thanks yet again,
--
Gary Beard


  #2   Report Post  
Biff
 
Posts: n/a
Default

See previous post for a possible solution

Biff

"gbeard" wrote in message
...
I have a sheet with data in 4 columns. Column A is the clients name,
address and city. Column B is the state the client is in. Column C is the
zip code of the client. And Column D is the clients phone number.
I need to break up Column A into 3 columns so that the clients name is in
Column A, their street address is in Column B and their city name is in
Column C. The length of the clients names, address' and city are all
different lengths. There are no punctuation marks. Some city names have
1 word, some have 2 and some even 3.
Is there a way to break this column into 3 columns?

Thanks yet again,
--
Gary Beard



  #3   Report Post  
gbeard
 
Posts: n/a
Default

Biff,
Can I use the FIND command to locate a number (not a specific number, but
rather, the first number) within a cell? This would solve part of my
problem, if I can extract everything before the first number I would end up
with the clients name.

--
Gary Beard


  #4   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this array formula. Entered with the key combo of CTRL,SHIFT,ENTER:

=LEFT(A1,MATCH(1,(CODE(MID(A1,ROW(INDIRECT("1:"&LE N(A1))),1))47)*(CODE(MID(A1,ROW(INDIRECT("1:"&LEN (A1))),1))<58),0)-1)

Will return everything to the left of the FIRST NUMBER (digit) found in the
string.

Biff

"gbeard" wrote in message
m...
Biff,
Can I use the FIND command to locate a number (not a specific number, but
rather, the first number) within a cell? This would solve part of my
problem, if I can extract everything before the first number I would end
up with the clients name.

--
Gary Beard



  #5   Report Post  
gbeard
 
Posts: n/a
Default

Biff,
Can I get everything right of the numbers by substituting RIGHT for LEFT?
Or is there a different way to do that?

--
Gary Beard




  #6   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Don't'cha love this! <g

I'm assuming that there's a space after the numbers? If not this won't work!

Try this array formula:

A1 = John Smith 1234 South St.

=MID(A1,FIND("
",A1,MATCH(1,(CODE(MID(A1,ROW(INDIRECT("1:"&LEN(A1 ))),1))47)*(CODE(MID(A1,ROW(INDIRECT("1:"&LEN(A1) )),1))<58),0))+1,255)

Returns: South St.

Biff

"gbeard" wrote in message
. com...
Biff,
Can I get everything right of the numbers by substituting RIGHT for LEFT?
Or is there a different way to do that?

--
Gary Beard



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
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM
How can I make Excel return the text in column A only if there is. phatbusa Excel Worksheet Functions 1 January 26th 05 04:25 PM
convert a column of text to proper Harvey New Users to Excel 4 December 17th 04 02:25 PM
Splitting text in one column into two (or more) columns. RickyDee Excel Worksheet Functions 4 December 7th 04 10:03 PM
Problem with graph ranges No Such Luck Charts and Charting in Excel 6 December 3rd 04 01:09 PM


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