Solved

How do I reformat "City, State" into separate columns of City and State in Excel?

Posted on 2016-07-26
8
37 Views
Last Modified: 2016-07-26
The following data exists in one cell:

City/State
Washington, DC
Washington, DC
Washington, DC
Washington, DC
Washington, DC
Arlington, VA
Arlington, VA
Springfield, VA
Springfield, VA
Springfield, VA
Washington, DC
Newington, VA
Lorton, VA
Fairfax, VA

I need to format it so the City information is in one cell and the state abbreviation is in another.
0
Comment
Question by:impala6
8 Comments
 
LVL 5

Accepted Solution

by:
Eric C earned 250 total points
ID: 41730037
Easy. In Excel 2007(?) and higher, there is a button called 'Text To Columns'

1. Highlight the entire column (single click on the column letter)
2. In the Data tab, click the 'Text to Columns' button
3. In the dialog box, deselect 'Tab' and select 'Comma'
4. Click 'Next'

See screen shot.
text-to-columns.jpg
1
 
LVL 28

Assisted Solution

by:Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj) earned 125 total points
ID: 41730040
Please follow these steps...

1) Select the column with City/State strings

2) Make sure that the next adjacent column is blank, if not, insert a new column.

3) Go to Data Tab --. Text to Columns

4) Choose Delimited --> Next --> Check the checkbox for comma --> Next --> Finish
1
 
LVL 8

Assisted Solution

by:itjockey
itjockey earned 125 total points
ID: 41730043
Text To ColumnNext - Next FinishThanks
0
 
LVL 5

Expert Comment

by:efrimpol
ID: 41730046
Column A, Column B, Column C - Record starts Cell A2

Column A = "Washington, DC"
Column B = "=LEFT(A2, SEARCH(",",A2,1))"
Column C = "=RIGHT(A2,LEN(A2)-SEARCH(",",A2,1))"

Results in Column B2 = "Washington"
Results in Column C2 = "DC"
1
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 5

Expert Comment

by:efrimpol
ID: 41730049
Typo - Record starts in Cell A1, not A2
1
 
LVL 8

Expert Comment

by:itjockey
ID: 41730051
zings too fast man....i am just about creating snaps & posting....   :)   after posting i see two post by others...
0
 
LVL 5

Expert Comment

by:efrimpol
ID: 41730053
see screenshot
0
 
LVL 5

Expert Comment

by:efrimpol
ID: 41730054
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now