Solved

How do I strip out the content in an Excel cell so that I can create and optimized list of words

Posted on 2011-03-15
5
183 Views
Last Modified: 2013-11-19
I have an excel file I copied from a public source for this example. I was looking for a simple way to do two things in excel.
1. Remove the everything after the state (getting rid of the population information)
2. Replacing it back with a comma after the city and or forcing quotes around both city and State.

The purpose is to identify for me the cities that I would like to market my consulting services to. I already have clients in many of the listed cities and I wanted to make sure future potential customers are aware that I travel to their cities. So i wanted to make sure that the names of the cities I traveled to were listed in and on my site. I have many more favorite towns I frequent that I would like to add as well. Your support is greatly appreciated. Thank you.
Top100Cities.xlsx
0
Comment
Question by:ruavol2
  • 4
5 Comments
 
LVL 33

Accepted Solution

by:
jppinto earned 500 total points
ID: 35140376
1) you can use this formula: =MID(B2,1,FIND("(",B2)-2)

see attached file.

Top100Cities.xlsx
0
 
LVL 33

Assisted Solution

by:jppinto
jppinto earned 500 total points
ID: 35140388
For 2), for instance, for the first line:

New York, New York (pop 8,213,839)

How would it look like after the transformation you want to do?
0
 
LVL 33

Assisted Solution

by:jppinto
jppinto earned 500 total points
ID: 35140395
Like this?

"New York", "New York"
0
 
LVL 33

Assisted Solution

by:jppinto
jppinto earned 500 total points
ID: 35140558
Actually, for 1) you should use this formula instead because you a space on the beginning of each row:

=TRIM(MID(B2,1,FIND("(",B2)-2))
0
 

Author Closing Comment

by:ruavol2
ID: 35235794
Thank you very much.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

910 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