Solved

Pull City out of excel

Posted on 2013-11-25
2
271 Views
Last Modified: 2013-11-25
I have a column of addresses that are all in this form:

"11493 East Rosehedge Dr
Whittier, CA 90606"

After the "Enter" and before the first Comma is the City. I want to pull just the city out of the cell in the next column. Any idea? First on is in Cell C2.
0
Comment
Question by:cansevin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 39676257
Try this formula in D2 copied down

=REPLACE(LEFT(C2,FIND(",",C2)-1),1,FIND(CHAR(10),C2),"")

regards, barry
0
 

Author Closing Comment

by:cansevin
ID: 39676270
Worked great, thansk!
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

726 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