Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spliting field on a "," 2

Status
Not open for further replies.

YNOTU

Technical User
Jun 21, 2002
749
US
Dear all, I have an excel sheet with 37,000 records where one field contains city, state and zip and I need to split this field into their own fields (city - state - zip).

It appears every records is formatted as follows:

123 Main Street, City, State ZIP

How can I split the field when two coma's are present?

Thanks
 
Look at the Split() function.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Have a look at Data > Text to Columns

[tt]_____
[blue]-John[/blue][/tt]

Help us help you. Please read FAQ181-2886 before posting.
 
Both worked great. Data > Text to Columns was so simple. I feel dumb.


Thank you very much guys
 
As do I...that is a better solution.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Don't worry about it. There's nothing dumb about asking questions and learning. [thumbsup]

[tt]_____
[blue]-John[/blue][/tt]

Help us help you. Please read FAQ181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top