Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# Pull City out of excel

Posted on 2013-11-25
Medium Priority
277 Views
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
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

LVL 50

Accepted Solution

barry houdini earned 2000 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

ID: 39676270
Worked great, thansk!
0

## Featured Post

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns overâ€¦
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaacâ€¦
###### Suggested Courses
Course of the Month9 days, 21 hours left to enroll

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

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