Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Cindy
 
Posts: n/a
Default Trying to split up info in one cell to several

I am working on a home PC, Excel 2003. I have a column (it is column C of A
thru K, if that matters) of data that includes street address (may include
suite number, etc.), city, state, zip and all info is separated by commas
except state and zip. I am trying to separate the information in this column
so that each part is in its own column. I need to keep all of the address
(street number, street name, PO box number, suite number, etc. together) in
one field, city in the next field, then state, then zip. The problem I am
having when converting text to columns using the comma as the delimiter is
that I end up with too many columns of data. Is there a way to do something
like this starting with the comma farthest to the right and only going back
five characters to get the zip out and then continuing from right to left for
two commas to strip the state out then the city, leaving the rest to be the
address?

Any help is greatly appreciated. My only alternative is to retype all info
in columns A through K, rows three through 1,102.
--
God Bless! Cindy
  #2   Report Post  
Nick B
 
Posts: n/a
Default

You could use formulas like (=left(c1,len(c1)-3) to get everything but the
last comma and two numbers, then =right(c1,2) to get the last two numbers.)
Drag these formulas down, then highlight them and go to Edit-Copy,
Edit-Paste Special Values to remove the underlying formulas. Then keep
repeating the process for each column of data you want to pull of from the
original data...

"Cindy" wrote:
Is there a way to do something
like this starting with the comma farthest to the right and only going back
five characters to get the zip out and then continuing from right to left for
two commas to strip the state out then the city, leaving the rest to be the
address?

Any help is greatly appreciated. My only alternative is to retype all info
in columns A through K, rows three through 1,102.
--
God Bless! Cindy

  #3   Report Post  
CyberTaz
 
Posts: n/a
Default

Hi Cindy-

Which ver. of Excel are you using? Might make a difference in how TtC works,
but I don't think so.

Using Excel '03, I tried what you're having a problem with and seemed to
have excellent results.

1) Started with this in one cell: |1015 Bond St., Suite 299, Baltimore, MD
21227|

2) Used Text to Columns, Delimited, set delimiter to Comma & removed check
for Space

This gave me |1015 Bond St.|Suite 299|Baltimore|MD 21227| in 4 separate
colums. Next:

1) selected the cell w/State & Zip

2) Text to Columns, Delimited, set Delimiter to Space & removed check for
Comma, and in Step 3 clicked to select first column & set option to Do Not
Import (Skip)

3) final result: |1015 Bond St.|Suite 299|Baltimore|MD|21227| in 5 columns
with no further editing to be done (the last step of the Wizard isolates the
leading space in the State cell as the column to not be imported).

Granted, this puts Street Address & Suite in separate columns, but IMHO that
is preferable for mail merge as well as most other purposes.

Hope this is useful |:)

"Cindy" wrote:

I am working on a home PC, Excel 2003. I have a column (it is column C of A
thru K, if that matters) of data that includes street address (may include
suite number, etc.), city, state, zip and all info is separated by commas
except state and zip. I am trying to separate the information in this column
so that each part is in its own column. I need to keep all of the address
(street number, street name, PO box number, suite number, etc. together) in
one field, city in the next field, then state, then zip. The problem I am
having when converting text to columns using the comma as the delimiter is
that I end up with too many columns of data. Is there a way to do something
like this starting with the comma farthest to the right and only going back
five characters to get the zip out and then continuing from right to left for
two commas to strip the state out then the city, leaving the rest to be the
address?

Any help is greatly appreciated. My only alternative is to retype all info
in columns A through K, rows three through 1,102.
--
God Bless! Cindy

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
Function required to extract cell info from an unopened file. westcountrytractorboy Excel Worksheet Functions 4 February 10th 05 07:57 AM
how do i get excel to see info in one cell, look at info in anoth. ditto Excel Discussion (Misc queries) 3 February 1st 05 04:37 PM
how can I split a single cell diagonally in Excel 2000 Forrest Excel Discussion (Misc queries) 2 January 27th 05 11:47 PM
how do you split a cell? Supervisor Excel Discussion (Misc queries) 4 December 20th 04 11:30 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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