Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Parsing Data

How do I parse data that is in the same column and contains different
lengths of text strings. I have a column that contains city, state,
and zip. I want to split the city, state and zip into three different
columns.


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Parsing Data

Exactly what do the cells contain? What separates the city name
from the state, and what separates the state from the zip code?


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"MGAL " wrote in message
...
How do I parse data that is in the same column and contains

different
lengths of text strings. I have a column that contains city,

state,
and zip. I want to split the city, state and zip into three

different
columns.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Parsing Data

You could try Data, Text to Columns. this will split the
information provided that each city, state and zip is
divided by the same separator, eg. coma, space or tab.

Make sure that you have two empty columns to the right to
place the data or the existing information in those
columns will be overwritten.

Peter Atherton
-----Original Message-----
How do I parse data that is in the same column and

contains different
lengths of text strings. I have a column that contains

city, state,
and zip. I want to split the city, state and zip into

three different
columns.


---
Message posted from http://www.ExcelForum.com/

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Parsing Data

The cells look like this:'

Carson City, NV 60515
Naperville, IL 60540

I have tried Text-to-Columns, but because of the different text string
as far as the city goes, I am stumped!


---
Message posted from http://www.ExcelForum.com/

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Parsing Data

Maybe you could do the Data|Text to columns twice.

The first time, use delimited (by commas) to separate the city from everything
else.

Then the second time use spaces to separate the state from the zip.



"MGAL <" wrote:

The cells look like this:'

Carson City, NV 60515
Naperville, IL 60540

I have tried Text-to-Columns, but because of the different text string
as far as the city goes, I am stumped!

---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Parsing Data

That Worked! Thank-you Very Much!

--
Message posted from http://www.ExcelForum.com

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
Parsing Data with Javier Excel Discussion (Misc queries) 0 June 27th 06 06:21 PM
Parsing data macro cjmillerFL Excel Discussion (Misc queries) 5 January 26th 06 07:40 PM
Help With Parsing Data Saxman Excel Discussion (Misc queries) 5 December 27th 05 02:39 PM
Parsing Data Saxman Excel Discussion (Misc queries) 4 December 8th 05 08:31 AM
Data parsing question Dan Neely Excel Worksheet Functions 0 July 19th 05 12:40 AM


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