#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default text find

i have:
"A1" San Diego, CA 94588
"A2" Seattle, WA 96811
"A3" Honolulu, HI 96822
etc...

I need for the City to be in one cell, State in the other, and ZIP in another
"A1" San Diego "B1" CA "C1" 94588
i tried doing a find replace, based on the comma, but i cant seem to get it
right.

please help

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default text find

Hi,
- Select the column of data
- go to to menu Data Text To Column.
- Step 1 of 3, choose Delimited
- Step 2 of 3, choose Comma
- Step 3 of 3: select both data columns in the dialog and choose Text as
data type
- click Finish
Now you have city in a column and State&Zip in the following column
- Select the State&Zip column and redo the above process, but this time, in
step 2 of 3, choose Space as a delimiter.
(make sure you choose Text data type.)

Regards,
Sebastien
"choice" wrote:

i have:
"A1" San Diego, CA 94588
"A2" Seattle, WA 96811
"A3" Honolulu, HI 96822
etc...

I need for the City to be in one cell, State in the other, and ZIP in another
"A1" San Diego "B1" CA "C1" 94588
i tried doing a find replace, based on the comma, but i cant seem to get it
right.

please help

Thank you

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default text find

Select column A,

Do Data=Text to columns

Select delimited

in the second dialog, select comma only as the delimiter

then finish.

Now select column B and repeat, but select space as the delimiter to
separate the state and zip.

This will give you a column of just spaces in Column B, so you can then
delete column B.

try this on a copy of your data.

--
Regards,
Tom Ogilvy




"choice" wrote in message
...
i have:
"A1" San Diego, CA 94588
"A2" Seattle, WA 96811
"A3" Honolulu, HI 96822
etc...

I need for the City to be in one cell, State in the other, and ZIP in

another
"A1" San Diego "B1" CA "C1" 94588
i tried doing a find replace, based on the comma, but i cant seem to get

it
right.

please help

Thank you



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
Find text in free-format text field Eric_NY Excel Discussion (Misc queries) 5 May 27th 09 07:31 PM
Search, find or lookup defined text in text string zzxxcc Excel Worksheet Functions 9 September 6th 07 09:37 PM
find text in cell and replace it with part of the text in that ce. jules Excel Discussion (Misc queries) 3 May 3rd 07 10:18 AM
can you find specific text in a string ignoring any other text chriscp Excel Discussion (Misc queries) 1 September 18th 05 09:54 PM
backwards find function to find character in a string of text Ashleigh K. Excel Programming 1 January 14th 04 04:36 PM


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